Jump to content
  • 0

Pro Real Time - need help with coding a new indicator

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 :)

 

Share this post


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

Share this post


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
You are posting as a guest. If you have an account, please sign in.
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.


×
×