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,004
    • Total Posts
      72,806
    • Total Members
      61,092
    • Most Online
      5,137
      14/01/21 09:51

    Newest Member
    Praj
    Joined 22/04/21 19:35
  • Posts

    • FYSE 100 update.... 22-04-2021... Still marching ( Volatility model nailed this one) 🙂  
    • Hi does anybody know if there are any terms and conditions specific to the use of the Rest API?  In particular is it within the terms and conditions for me to use a third party application to open and manage trades on my account via the Rest and Streaming APIs    
    • ''Why it's almost like these 'vaccines' don't do the one thing vaccines are supposed to do...''  @JamesDelingpole An unvaccinated worker set off an outbreak at a U.S. nursing home where most residents were immunized. - The New York Times (nytimes.com) Reminder (from previous post) that SAGE expect of deaths in next wave 70% will be of those who have been vaccinated. Mostly because of age group but also because of Vaccine Enhanced Disease (also mentioned in a previous post). As in the video directly above, in animal studies in previous attempts to create gene altering vaccines ALL the ferrets died, usually on contact with the wild version of the virus between 3 and 12 months after vaccination which caused a fatal autoimmune response. (cytokine storm, so don't stop taking the vitamin D)   Meanwhile, the FT on India ...   Deaths, covid deaths and context. Data is nothing without context.   And a lookback at just what was possible and what was not? 🤔
×
×
  • Create New...