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 post

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 post

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • General Statistics

    • Total Topics
      15,175
    • Total Posts
      73,266
    • Total Members
      61,614
    • Most Online
      5,137
      14/01/21 09:51

    Newest Member
    McFish
    Joined 13/05/21 15:16
  • Posts

    • This is why I think using volatility as an important input is a much better way..... It's not about predicting the markets, it's about proactively preparing for what maybe around the corner. Follow me on twitter for more updates. Took me all night to model that price action and it paid off “ biggly”.    Take care out there  CA  
    • A higher than normal spread generally indicates one of two things, high volatility in the market or low liquidity due to out-of-hours trading. Before news events, or during big shock (Brexit, US Elections), spreads can widen greatly. A low spread means there is a small difference between the bid and the ask price. From google
    • I don't think it would be a problem trading during the weekend. You can trade whenever you want.  I learned how to do it on the cryptoinformator website. The highest income is brought by bitcoin. When looking at the value of the current 55,000 dollars, of course, everyone is thinking about investing in it. Forecasts vary, and many believe that by the end of 2021, they would have surpassed 100,000 dollars. The growth is projected to be based on the fact that real-world payment flow stock markets are still burdened by the current pandemic but is also based on the increasing acceptance of BTC as legal tender ( PayPal is bringing this option, and bitcoin is also coming to Wall Street soon).
×
×
  • Create New...