DEMAND AND SUPPLY CODE

DEMAND AND SUPPLY CODE

Hey,

Here is the code of Demand And supply Indicator.

//@version=4
        //change here with the name you prefer to give the script
study("Custom Script GSF Demand & Supply Zone", overlay=true)

show_color = input(true, title="Show Color?", type=input.bool)


bool cond = na

//red candles
if close < open
    // open - close < 1/2 high - low
    cond := open - close < (high - low)/2 and show_color
   

//green candles
if close > open
    //close - Open < 1/2 (High - Low)
    cond := close - open < (high - low)/2 and show_color
   

barcolor(color= cond ? color.navy : na, title ="bar color")
    • Related Articles

    • Demand and Supply notes

      Hey, Here are the notes of demand and supply strategy. PFA
    • Demand and Supply FAQ

      Here is the link to 5 implementation sessions you have to watch before starting on the charts: 1. https://learn.goelasf.in/courses/1226541/lectures/27376887 2. https://learn.goelasf.in/courses/1226541/lectures/27419795 3. ...
    • Implementing ISMA

      We understand that you might face difficulty in choosing your action plan (Discussed in this video: https://learn.goelasf.in/courses/1226349/lectures/27369683). So we have made a simple yet effective executable plan for you here in this video: ...
    • Technical Strategies- 101

      Note: Please use NSE charts as they are updated real time, unlike BSE. MACD: In-depth details about MACD- https://www.investopedia.com/terms/m/macd.asp 12, 26, 9 in MACD is an arbitrary number that has been tested over years. There is no logic behind ...
    • Debunking FnO

      Implementation sessions for a more practical understanding: Bullish Options Implementation: https://learn.goelasf.in/courses/1226541/lectures/43071533 Bearish Options Implementation: https://learn.goelasf.in/courses/1226541/lectures/44270532 Trading ...