Excellent Dclayw,dclayw wrote:Not sure if anyone would be interested in this but when I was playing around with grid trading in the EA I was thinking about what value I should use for TpPercentOfAtrToUse for the basket TP. I had a good idea of what I should use as the TP if I was just taking single trades, but what should that be if I was trading a grid?
Lets say you were taking single trades and had a TP of say 100 pips. If you wanted to grid trade that for extra profits then you could express that 100 pips as a % of ATR. Let's say that came out to 1.5 ATR, (GridAtrMultiplier would be 1.5). So what should TpPercentOfAtrToUse be set to for a GridSize of X (X = number of pendings for the grid). It's pretty easy to calculate this manually but here's a quick way:
If you're also using Immediate Market Orders (a trade right at the very base of the grid) then:
TpPercentOfAtrToUse = (X+1) * Y/2 where:
X = GridSize (number of pendings for the grid)
Y = GridAtrMultiplier
So if your grid was 100 pips = 1.5ATR, and you wanted 4 pendings, then TpPercentOfAtrToUse = (4+1) * 1.5/2 = 3.75
If you're NOT using Immediate Market Orders (no trade at the base of the grid) then:
TpPercentOfAtrToUse = (X-1) * Y/2 = 2.25 using example values above.
Anyway test it out to see if it works for you. Pretty sure the math is right, let me know otherwise.
I love what you bring to the table. Keep them coming
Cheers
Leon