Which scenario does PRT react to?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #51854 quote
    RicxRicx
    Participant
    Junior

    Hi!

    So, I have created a system with the following conditions (need to match) for entering a long position:
    – close>MA50
    – RSI2<10

    Now, what I really want is the system to enter a long position when price is above MA50 and RSI2 goes over value 10 from a lower value. Though, I am not sure how the program works. Will it enter a long position when price is over MA50 and as soon as RSI2 gets down below value 10, like coming down under 10 from a higher value? Or will it enter a long position when RSI2 gets over 10 from a lower value?

    Regards,

    #51857 quote
    gabrigabri
    Participant
    Master

    You can try to use this code:

    b=RSI[2](close)
    c1=close>average[50](close)
    c2=b crosses over 10
    if c1 and c2 then 
    buy 20000 cash at market//or whatever other amount or shares
    endif
    Ricx thanked this post
    #51983 quote
    RicxRicx
    Participant
    Junior

    Thanks, will try šŸ™‚

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Which scenario does PRT react to?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Ricx @ricx Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by RicxRicx
8 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/07/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...