Please help – coding for tradingview in pine script

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24427 quote
    shivoham005shivoham005
    Participant
    New

    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 quote
    NicolasNicolas
    Keymaster
    Legend

    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)
  • 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

Please help – coding for tradingview in pine script


General Trading: Market Analysis & Manual Trading

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
9 years, 7 months ago.

Topic Details
Forum: General Trading: Market Analysis & Manual Trading
Language: English
Started: 02/08/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...