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.


  • Member Statistics

    • Total Topics
      12,745
    • Total Posts
      65,418
    • Total Members
      86,187
    Newest Member
    mkpotturi
    Joined 20/10/20 23:25
  • Posts

    • with the previous hour's candle completed, Monday's low became a third-order Grimes pivot point - taking this as a signal would have resulted in closing the short 400 points below entry: I find this interesting.  of course this a sample of one so absolutely not representative.  and there are probably easier ways to come to the same conclusion - e.g. selling after a pronounced up-move once two lower highs emerge, or breakthrough the approximate neckline of a h&s pattern, and buying once a low held a very close test and a re-test would have lead to the same here...  also kinda would require 24/5 monitoring... will try to work on a plan addressing these issues   
    • this probably should have been ignored, but IMHO it was a new low.  obviously jlz tried to help someone here, and referred to others to add emphasis to a point.  I'm writing this because I actually asked for support in my earlier response, and I'm very pleased I'm not the only one who reacted to this post thoughtfully, so I think it would be pretty weak if I didn't speak up here. That may make me look ridiculous, and like my tongue is now travelling through a bunch of cracks, but I don't give a **** (like I think you would not either).    I'm actually surprised that you @dmedin  left it to this statement - usually you're significantly more effective in warning people of the hazards we face as retail punters IMHO - I think you definitely had stronger moments. you know what I would find useful:  having a separate, focused thread for insults  - I'm sure by now the respective targets wouldn't mind (to not again say not give a ****), and other discussions could become - let's say "leaner". I genuinely think I got a lot of valuable insights from many of your posts here, and I highly appreciate the honest feedback, and I also believe you have good intentions. I don't know about any history between you, jlz, THT, and Caseynotes.  I further think you play an important role here in this forum and I look forward to more productive discussions with you. But the post quoted above was a new low.     
    • Wall Street holding up still 🤔  
×
×