Code:
OnInit() {
PriceBox = Bid;
...
}
OnTick() {
if (Bid > PriceBox + 0.001) {
PriceBox += 0.001;
}
if (Bid < PriceBox - 0.001) {
PriceBox -= 0.001;
}
}
traderdoc
__________________
Ich erfülle Euch gern Eure EA-, Indikator- und Script-Programmierungswünsche auf Honorarbasis.
|