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,157
    • Total Posts
      73,210
    • Total Members
      61,553
    • Most Online
      5,137
      14/01/21 09:51

    Newest Member
    Giri
    Joined 11/05/21 04:02
  • Posts

    • It's times like in the attached image, Oct 18-dec 18. The FTSE saw declines over an extended period of time. If your view even over the short term eg days is that the market will recover the falls, in this case that isn't true. Basically I think I need to learn how to short, as long trading isn't always the right thing to do.
    • Hello Everyone, Quite the noobie question, but how exactly can I know how trusted and well intended and ICO is? I've been scouting a lot of them for quite some time and I've seen both sides of the coin. I've seen ICO's with good marketing and youtubers talking about it that just dissapeared after a few months, and I've seen ICO's with not as much publicity breaking the bar (ELROND for example). Any help would be appreciated. I would like it if we posted here our research and opinions so we can further examine ICO's if anyone else is into that stuff
    • I am very uncertain about this coin. If you have more info please post here, I am following  
×
×
  • Create New...