OL
Test all numbers between two numbers
12 Jan 2014, 14:25
Hi, i was wonder how I can test all numbers between for example the high an low of a bar.
Example:
/////////////////////////////////
if(High-Low == 1.3542)
Print("---");
/////////////////////////////////
So if the high value is 1.3600 and the low value is 1.3500 the robot would print ---
Thanks

modarkat
12 Jan 2014, 15:15
var low = 1.12345; var high = 1.12355; for (var price = low; price <= high; price += Symbol.TickSize) { Print(price); }@modarkat