Download MetaTrader 5
To add comments, please log in or register
Find out how your rating can be improved
sdoppke
70
sdoppke 2015.10.01 15:41 

Hi, I use the first snippet of code to get the "floor" (profit lock) for each of the 4 strategies on my EA for each chart.  I use the second snippet to add all 4 "Floors" for each chart.  I am looking for help on how to add all the "Floors" on all the charts into 1 total.


Hope that made sense.  Thanks in advance for any help. :)


SD


if(OrderMagicNumber()==DB_Magic && OrderSymbol()==Symbol() && DB_Profit>DBTarget) DBFloor=NormalizeDouble(DBTarget*DB_Floor_Percnt_of_Step,2);  // This is to get the Floor for each of my 4 strategies on the one EA for each chart
(DBFloor+BolliFloor+RSIFloor+CCIFloor)//This is how I add the Floor up for each of the 4 strategies on each chart
sdoppke
70
sdoppke 2015.10.02 16:32  
Any ideas on this one?
peter.MT4Web
158
peter.MT4Web 2015.10.03 11:08  

Loop through your open orders and add up all floors belonging to your system / magic#.

sdoppke
70
sdoppke 2015.10.05 13:39  
eddie:

Loop through your open orders and add up all floors belonging to your system / magic#.



Eddie, thank you so much. That was it.  That was pretty obvious but I just want getting it.

Thanks again.
/
To add comments, please log in or register