Hello Guys,
You've been very helpful but wondering if you could help explain this...
When I run my EA, the print command shows me the value for var3 (my stop) is "1". How does it come up with this number?
Here's the output line:
Recmax: 1.9859 Recmin: 1.9782 Stop: 1
Im expecting the value to be 50 points less then Recmax which would be like 1.9359
==========
Code
==========
int var3 = NormalizeDouble(RectanglePriceMax,Digits)-500*Point;
OrderSend(Symbol(),OP_BUYLIMIT,1,NormalizeDouble(RectanglePriceMin,Digits),3,var3,NormalizeDouble(RectanglePriceMin,Digits)+500*Point,"Order Sent", 16384,0,Green);
Print("Recmax:", RectanglePriceMax, "Recmin:", RectanglePriceMin, "Stop: ", var3, "This is for the bullish pattern");
You've been very helpful but wondering if you could help explain this...
When I run my EA, the print command shows me the value for var3 (my stop) is "1". How does it come up with this number?
Here's the output line:
Recmax: 1.9859 Recmin: 1.9782 Stop: 1
Im expecting the value to be 50 points less then Recmax which would be like 1.9359
==========
Code
==========
int var3 = NormalizeDouble(RectanglePriceMax,Digits)-500*Point;
OrderSend(Symbol(),OP_BUYLIMIT,1,NormalizeDouble(RectanglePriceMin,Digits),3,var3,NormalizeDouble(RectanglePriceMin,Digits)+500*Point,"Order Sent", 16384,0,Green);
Print("Recmax:", RectanglePriceMax, "Recmin:", RectanglePriceMin, "Stop: ", var3, "This is for the bullish pattern");
Know your indicators!