Please help – coding for tradingview in pine script

Forums ProRealTime English forum General trading discussions Please help – coding for tradingview in pine script

Viewing 2 posts - 1 through 2 (of 2 total)
  • #24427

    Hi,

    I need a very simple strategy code for tradingview.com

    chart type: heikin ashi
    When the 1st bar/candle becomes green (new/1st green bar/candle) in heikin ashi charts then open long position
    Stoploss as 1st/new red bar/candle
    And target for long position same as above 1st/new red bar/candle formed

    Vice a versa for short positions
    when 1st/new red bar/candle is formed open short position
    Stop loss as 1st/new green bar/candle formation
    Target also the same 1st/new green bar/candle formation

    basically what I am trying to do here is when we have the green bricks start forming in heikin ashi charts I go long
    and as green bricks become red I close long positions and take short positions

    thank you so much for your help

    Regards,
    Mukesh
    #24433

    Hello, sorry but this website is dedicated to prorealtime programming, not for pinescript language.

    I can of course translate any Pinescript source code to PRT, but not from PRT to Pinescript 🙂 even if I know also well this language.

Viewing 2 posts - 1 through 2 (of 2 total)

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