Master_Candle

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Master_Candle

Postby bruno2017 » Thu Jan 07, 2021 9:26 am

Hello I do not have the code it isur nanotrader
can you still do something??
bruno2017
FXCodeBase: Initiate
 
Posts: 102
Joined: Fri Mar 23, 2018 8:59 am

Re: Master_Candle

Postby bruno2017 » Fri Jan 08, 2021 5:08 am

Bonjour
ce code me semble corect


// This source code is subject to the terms of the GNU License 2.0 at https://www.gnu.org/licenses/old-licens ... .0.en.html
// © cma

//@version=4
study('Inside Bar Ind/Alert', overlay=true)

bullishBar = 1
bearishBar = -1

isInside() =>
previousBar = 1
bodyStatus = (close >= open) ? 1 : -1
isInsidePattern = high < high[previousBar] and low > low[previousBar]

isInsidePattern ? bodyStatus : 0

barcolor(isInside() == bullishBar ? color.green : na)
barcolor(isInside() == bearishBar ? color.red : na)

// When is bullish bar paint green
plotshape(isInside() == bullishBar, style=shape.triangleup,
location=location.abovebar, color=color.green)

// When is bearish bar paint red
plotshape(isInside() == bearishBar, style=shape.triangledown,
location=location.belowbar, color=color.red)

isInsideBarMade = isInside() == bullishBar or isInside() == bearishBar

alertcondition(isInsideBarMade, title='Inside Bar', message='Inside Bar came up!')
bruno2017
FXCodeBase: Initiate
 
Posts: 102
Joined: Fri Mar 23, 2018 8:59 am

Re: Master_Candle

Postby Apprentice » Sat Jan 09, 2021 1:31 am

Your request is added to the development list.
Development reference 51.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 28491
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: Master_Candle

Postby bruno2017 » Mon Jan 11, 2021 1:27 pm

thank you very much
to use with a trend filter
bruno2017
FXCodeBase: Initiate
 
Posts: 102
Joined: Fri Mar 23, 2018 8:59 am

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 12 guests