Jump to content
  • 0

Pro Real Time - need help with coding a new indicator


Phoenix357

Question

Have read the instructions but am unable to work out how to code the following:

BUY Signal to appear when: 

EMA has 2 consecutive increases and Stock Momentum Index (SMI) is less than 0 and the SMI has 2 consecutive increases (eg: -30 then -28 then -25) .

Just using the standard default indicators that are in PRT. Really grateful if  anyone can assist please :)

 

Link to comment

3 answers to this question

Recommended Posts

  • 0

PS: I wrote some pseudo code for you.

First create a variable with your EMA values, do the same for SMI. Rename "Ema" and "SMIindicator" accordingly.

Ema[2]<Ema[1] and Ema[1]<Ema[0] and SMIindicator[0] <= 0 SMIindicator[2]<SMIindicator[1] and SMIindicator[1]<SMIindicator[0]

You can access your indicator past values using YourIndicator[number of candle]. 0 is the current candle, 1 is the previous one and so on. Experiment with these numbers until you find what you need. Good luck

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • General Statistics

    • Total Topics
      21,639
    • Total Posts
      91,923
    • Total Members
      41,928
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    NormanFu
    Joined 27/03/23 07:51
  • Posts

    • #GBPNZD: Nice Bullish CluesUpdate for GBPNZD.It looks like the price has nicely respected a broken triangle.The price formed a bullish engulfing candle on a daily.Bullish bias on a pair remains.Goal remains unchanged - 1.997
    • #USDJPY: Key Levels to Watch This WeekHere is my latest structure analysis for USDJPY.Resistance 1: 132.46 - 133.25 areaResistance 2: 135.0 - 135.8 areaResistance 3: 137.36 - 137.9 areaSupport 1: 129.64 - 130.7 areaSupport 2: 128.09 - 128.7 areaSupport 3: 127.2 - 127.8 areaConsider these structures for pullback/breakout trading.
    • Gold (#XAUUSD): 2 Scenarios For This Week Explained⚠️Gold closed this week, approaching a solid daily resistance.Depending on the reaction of the price to that structure, I see 2 potential scenarios for next week.Bullish ScenarioIf the price breaks and closes above 2010 resistance on a daily,a bullish continuation will be expected to 2060 level.Bearish ScenarioThe price may respect the underlined resistance.1917 - 1940 is the closest strong support.If the price drops and closes below that area,a bearish continuation will be expected to 1891.Wait for a breakout and then follow the market.For Additional confirmation use: ROC Indicator
×
×
  • Create New...