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

    Newest Member
    jasonleppan
    Joined 12/05/21 17:17
  • Posts

    • 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).
    • I played around with it (created two plots of the smallest viable K-32 size). While I'm farming this tiny amount now I've stopped plotting until pooling is introduced - since existing plots aren't going to be compatible with pooling. The cost of wearing out SSDs is high. You're effectively buying (via SSD wear) lottery tickets (the plots) with a chance of winning a lottery (by farming). Without pooling its unlikely small players will win. The "estimated time to win" is based on current network space that will probably rise at a very quick rate reducing your chance of winning exponentially.  Unless you're farming petabytes, using the rule of large numbers to take out the lottery element, its not worth the time of smaller farmers imho. It may be worthwhile when they introduce pooling.
    • Yeah, you can trade whenever you want. 
×
×
  • Create New...