INDICATOR FOR Binary option

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Re: INDICATOR FOR Binary option

Postby yolerap » Fri May 08, 2020 4:28 am

Hi Apprentice and team,

Could you please translate this strategy from TradingView to LUA indicator please ?


strategy("P&F scalp strat V3", shorttitle="MEXlongOnly_strat V3", overlay=true)
timeframe = input('3')
box = input('Traditional')
boxsize = input(5, type=float)
reversal = input(1)

pnf = pointfigure(tickerid, 'close', box, boxsize, reversal)

pnf_open= security(pnf, timeframe , open)
pnf_close= security(pnf, timeframe , close)

p1 = plot(pnf_open, title="pnf_open", color=green)
p2 = plot(pnf_close, title="pnf_close",color=maroon)

base = pnf_close> pnf_open? pnf_close: pnf_open
p0 = plot(base, title="base", color=gray)

fill(p0, p2, color=green, transp=70)
fill(p0, p1, color=maroon, transp=70)

entry() => (base > pnf_close)
exit() => (base > pnf_open)

alertcondition(entry(), title='buy', message='buy!')
alertcondition(exit(), title='sell', message='sell!')

strategy.risk.allow_entry_in(strategy.direction.long)
strategy.entry("Long", long=true, when=entry())
strategy.entry("close", false, when=exit())


This strategy is repaint but is it possible to no repaint it please ? So when one signal is given, let the signal on the chart and do not modify his position.

Thank you in advance,
Yolerap
yolerap
FXCodeBase: Initiate
 
Posts: 103
Joined: Sat Aug 17, 2019 9:44 pm

Re: INDICATOR FOR Binary option

Postby Apprentice » Fri May 08, 2020 5:30 am

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


Previous

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: 7000306337, Bing [Bot], Majestic-12 [Bot] and 10 guests