buying condition from 2 TF’s

Forums ProRealTime English forum ProOrder support buying condition from 2 TF’s

Viewing 4 posts - 1 through 4 (of 4 total)
  • #181369

    Hello,

    I’m trying to create a simple buying order that uses weekly and daily data.

    This is the code:

    timeframe(weekly)
    a=rsi[9]> 20
    timeframe(daily)
    b=rsi[9]>20

    if a and b then
    buy 10000 cash at market
    endif

    if rsi[9]>70 then
    sell at market
    endif

    Thanks in advance,

    Assaf

    #181370

    Please discard this topic. I couldn’t find how to delete it.

    #181372

    It seems correct, even though I’d check for an exit BEFORE the entry.

     

    #181373

    Let’s keep it. You simply unsubscribe it, if subscribed.

     

Viewing 4 posts - 1 through 4 (of 4 total)
Similar topics:

Create your free account now and post your request to benefit from the help of the community
Register or Login