Hi
I’d like some help in coding a strategy, using indicators that are already available on Pro-Real time.
It consists of 1 Indicator to form Bias: if Yes then Long Only, if No then Short only.
Entry Criteria: [Indicator 1 shows Positive And Indicator 2 shows Positive = Long Entry.] [Indicator 1 shows Negative And Indicator 2 shows Negative = Short Entry.]
If Bias = Long And Entry Criteria = Long on Next Bar Open
If someone is willing to help, then naturally I’ll disclose the Indicators.
Thanks
ED
I need help to stop people opening topics with the same title “i need help to code …”. If someone has a good and efficient way for that? 😆
OK, clearly Im new and made a common post. I wanted to be straight to the point and gave an overview of what I was looking for.
Not to be rude, but the sarcasm isnt ideal.
Sorry for being sarcastic! I will change the title and help you for sure.
Difficult to give you a perfect example, but you can code boolean variables (true or false) like this for instance:
rsiAbove50 = rsi[14]>50
or
rsiRising = rsi[14]>rsi[14][1] //rsi is superior from its previous value
or
rsiCross = rsi[14] crosses over 50
I encourage looking at the free course to start learning to program: Learning videos
Thanks for the reply, I’ll give it a try.
Would you know if its possible to have Daily Range Bars to confirm my Bias. EG: BUll range candle = Long only trades
And then have the Entry criteria look at RSI crossing 50 on Daily Price candles?