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. :)
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
Loop through your open orders and add up all floors belonging to your system / magic#.
To add comments, please log in or register