Totaling acrros charts

Back to topics list To post a new topic, please log in or register
avatar
25
sdoppke 2015.10.01 17: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
avatar
25
sdoppke 2015.10.02 18:32 #
 
Any ideas on this one?
avatar
108
eddie 2015.10.03 13:08 #
 

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


avatar
25
sdoppke 2015.10.05 15: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.
Back to topics list  

To add comments, please log in or register