Ok here my question how is the ATR used in your swiss army EA. I have been working on learning how to program. And I’m getting there slowly. Mainly with indicators.
Basically
I’m working on trying to build it so it always tries to change to a proper size.
I have an indicator attached and it just gives a number for ATR (average true range) my idea was to…
Takeprofit = (ATR * 3)*Timeframe 240) // I would average it over 60 bars
RatioTakeprofit [] = 8,9,10
RatioTakeprofit [3]
Ratiopips[]= 9, 8, 7, 6;
Ratiopips [1]
Takeprofitcalulater = (Takeprofit/ RatioTakeprofit [3])=
Pipscalulater = ( Takeprofitcalulater * Ratiopips [1])
Pips = Pipscalulate
TimeFrame 240 = 4h
Takeprofit = (ATR * 3)*Timeframe 240) // I would average it over 60 bars
well something like this to modify the takeprofit to the symbols scale and calculate the retractiment OR pips off of that
Ok so if ((ATR*4)timeframe 240)= 120
It would set the takeprofit to 120 and you come up with the pips distance
It divides the takeprofit by RatioTakeprofit [3] which = 12
And multiplys the Takeprofitcalulater by Ratiopips [1] which = 108
So effectively creating a 108x120
if Takeprofit = 100 then 90x100
or if it was 175 then 157.5x175 (rounded up 158x175)
also you can change the ratio of them and not be limited to just 9x10 ratio
And if the ATR goes up then it would scale up too. and we could put a limit of the size so during situations like OCT. it could scale its self out of range. then no trades during OCT
Have I just confused you all
BTW a spike jumping ea could use this kind of math
also i think ATRBands could replace the MA currently used if there is a spike the line moves farther from the center MA check it out.
BTW i'm still not a Coder (my script has massive errors)
Basically
I’m working on trying to build it so it always tries to change to a proper size.
I have an indicator attached and it just gives a number for ATR (average true range) my idea was to…
Takeprofit = (ATR * 3)*Timeframe 240) // I would average it over 60 bars
RatioTakeprofit [] = 8,9,10
RatioTakeprofit [3]
Ratiopips[]= 9, 8, 7, 6;
Ratiopips [1]
Takeprofitcalulater = (Takeprofit/ RatioTakeprofit [3])=
Pipscalulater = ( Takeprofitcalulater * Ratiopips [1])
Pips = Pipscalulate
TimeFrame 240 = 4h
Takeprofit = (ATR * 3)*Timeframe 240) // I would average it over 60 bars
well something like this to modify the takeprofit to the symbols scale and calculate the retractiment OR pips off of that
Ok so if ((ATR*4)timeframe 240)= 120
It would set the takeprofit to 120 and you come up with the pips distance
It divides the takeprofit by RatioTakeprofit [3] which = 12
And multiplys the Takeprofitcalulater by Ratiopips [1] which = 108
So effectively creating a 108x120
if Takeprofit = 100 then 90x100
or if it was 175 then 157.5x175 (rounded up 158x175)
also you can change the ratio of them and not be limited to just 9x10 ratio
And if the ATR goes up then it would scale up too. and we could put a limit of the size so during situations like OCT. it could scale its self out of range. then no trades during OCT
Have I just confused you all
BTW a spike jumping ea could use this kind of math
also i think ATRBands could replace the MA currently used if there is a spike the line moves farther from the center MA check it out.
BTW i'm still not a Coder (my script has massive errors)
Attached File(s)
ATR in Pips.mq4
2 KB
|
386 downloads
ATRbandsV02.mq4
3 KB
|
418 downloads
the markets moving, time to get in!