|
Elder_Ray_strategy |
foreignexchange
|
Post subject: Elder_Ray_strategy |
Post rating: 0
|
Posted: Tue 08 Nov, 2016, 11:01
|
|
User rating: 0
Joined: Fri 19 Sep, 2014, 12:05 Posts: 61 Location: Italy, montopoli di sabina
|
Hello traders,
I tried to write the Elder Ray Strategy in Visual JForex so if there are traders that utilize Elder Ray indicator maybe can be utilize this as support. The indicator is should be built to show the bullish and the bearish power of the market. The Bull Power is calculated subtracting the Candle High (tipically D1) to the EMA_13 (Ema calculate on a 13 period base) , so it could be Bull_power = Candle High - EMA_13. The Bear Power is calculated subtracting the Candle Low (tipically D1) to the EMA_13, so it could be Bear_power = Candle Low - EMA_13.
The strategy utilize the divergence between this indicator and the prices.
If the Bull_power is <= Lowest (Bull_p, 10) , so if the Bull power is lower than the lowest 10 past bull power and the Candle Close is > than EMA_13 then buy next bar at open market.
If the Bear_power is >= Highest (Bear_p, 10) , so if the Bear power is Higher than the Highest 10 past bear power and the Candle Close is < than EMA_13 then sell next bar at open market.
There is no SL or TP, when a buy (sell) position is opened it should remain opened till it find a sell (buy) condition.
The strategy is not written in an intelligent way for at least two reason.
1- To calculate the Lowest (Bull_p, 10) and the Highest (Bear_p, 10) the strategy not have a singular comparison among the 10 values.
2- Dunno how to code that if the position buy (sell) is opened the strategy should close the position when it is reached a sell (buy) entry.
Can someone write how to improve that?
Good trading : )
Attachments: |
ELDER_RAY_divergence.vfs [100.7 KiB]
Downloaded 150 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
foreignexchange
|
Post subject: Re: Elder_Ray_strategy |
Post rating: 0
|
Posted: Fri 11 Nov, 2016, 17:57
|
|
User rating: 0
Joined: Fri 19 Sep, 2014, 12:05 Posts: 61 Location: Italy, montopoli di sabina
|
A part is improved, this should contain the exit of the trade.
Attachments: |
ELDER_RAY_Strategy.vfs [101.17 KiB]
Downloaded 152 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|