I’m finally freeing up some free time to respond to your emails, and encode the indicators / strategies you asked for !
This request goes back for more than a month, as it is simple, I start with it.
Here is the e-mail:
Good Morning Marc,
For first, very compliments for all your studies, and all your video. I use prorealtime with CFD. I’m new-trader and i will need a little help for code one strategie that i’ave see.
I would ask you kindly if you could give me a hand to encode the screener.
that are the Condition:
1) a= MACD crosses over 0
2)When “a” is true, (since a> 0), verify that within next 6 bars, the close is > than the maximum close of the last 10 bars
So i will Screnner all the share o currenies that have the close > Highest[10](close), within 6 bars since MACD>0
I tried to encode the screener, but i have a problem to encode the time condition “within 6 bar..”
Thnak you in advance for your time, and i Hope you could help me….
First, I would like to say that if you write:
1
Close>highest[10](close)
=> You will have no result.
Indeed, even if the current closure is larger than that of the previous 10 candles, it is not greater than the current candle, itself!
It is therefore necessary to put:
1
Close>highest[10](close[1])
which refers to the previous 10 candles.
This being said, here is the result, both for the positive and negative MACDs.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue