Attachments forums

List of attachments posted on this forum.


All files on forums: 154109

Re: Coding Help

traderduke, Wed May 13, 2020 2:39 am

MRtools
me again, different problem.
Back a couple years ago when mt4 changed there coding we had add different commands to our code such as:

{
order_modify=OrderModify(ticket,OrderOpenPrice(),myStopLoss, myTakeProfit,0,DarkRed);
Print("BUY order opened : ------------------------------------ticket # " , ticket ," ", OrderOpenPrice());
}

{
bool order_modify=OrderModify(ticket,OrderOpenPrice(),myStopLoss, myTakeProfit,0,DarkRed); line 390 & 447 bool
Print("BUY order opened : ------------------------------------ticket # " , ticket ," ", OrderOpenPrice());
}
we had to have bool added to it to compile it. I think this stopped the "stoplose and takeprofit

extern double StopLoss = 0; // Maximum pips willing to lose per position.
extern int TakeProfit = 0; // 0= Off, Maximum profit level achieved.
from working. I think it just needs the proper command for it to work.
Could you have a look at it??
FYI; The TrailingStopType = 4; do work, I'm only loading the EA if you need be let me know and I'll load the indicators
thank you
All files in topic