There was some technical issues with the server from server company not from US
We are trying to reach the server company to resolve the issues as soon as possbile
We are trying to reach the server company to resolve the issues as soon as possbile
We are Improving the Speed , Site will be undermaintained until next message
NextLevelBot - Automation Trading in Stock Market
We are Improving the Speed , Site will be undermaintained until next message
now server is live please help us to check it if you face any issues that was not few hour before then let us know .
fyers connection issues my side please wait
fyers issues solved please check your side
hello everyone many of person want to strategy auto-strike price below a pine demo code with syntax
//@version=4
strategy(title="Demo with auto strike price", shorttitle="Demo with auto strike price" , overlay=true)
tradeType = input("BOTH", title="Choose Trade Type : ", options=["LONG", "SHORT", "BOTH", "NONE"])
_1 = input(true,"ββββββββββ Syntax ββββββββββ")
tt = input("BUY", "Transition_Type", options=["BUY", "SELL"])
ts = input("NIFTY", "Buy Call Symbol", input.string)
ts_1 = input("NIFTY", "Buy PUT Symbol", input.string)
qty = input("75", "Quantity Value", input.string)
_isBarInSession(sess) =>
t = time("1", sess)
na(t[1]) and not na(t) or t[1] < t
closeTimeInput = input(title="Intraday_Auto_Close :", type=input.session, defval="1430-1500")
useCloseTime = input(title="Intraday_Auto_Close | ON/OFF", defval=true)
closeTime = _isBarInSession(closeTimeInput)
sessCloseCond = useCloseTime ? closeTime and not closeTime[1] : false
_2 = input(true,"ββββββββββ Back_Testing ββββββββββ")
startDate = input(title="Start Date", type=input.integer, defval=22, minval=1, maxval=31)
startMonth = input(title="Start Month", type=input.integer, defval=3, minval=1, maxval=12)
startYear = input(title="Start Year", type=input.integer, defval=2021, minval=1800, maxval=2100)
endDate = input(title="End Date", type=input.integer, defval=31, minval=1, maxval=31)
endMonth = input(title="End Month", type=input.integer, defval=12, minval=1, maxval=12)
endYear = input(title="End Year", type=input.integer, defval=2021, minval=1800, maxval=2100)
inDateRange = (time >= timestamp(syminfo.timezone, startYear, startMonth, startDate, 0, 0)) and (time < timestamp(syminfo.timezone, endYear, endMonth, endDate, 0, 0))
//Message alert inputs
Buy_Call = '[{"TT":"'+ tt +'","E":"NFO","TS":"'+ ts +'{' +tostring(close) +'}CE","Q":"'+ qty +'","OT":"MARKET","P":"INTRADAY","VL":"DAY","NEAR":"50","CAL":"+500","AT":"ZERODHA"}]'
Buy_Put = '[{"TT":"'+ tt +'","E":"NFO","TS":"'+ ts_1 +'{' +tostring(close) +'}PE","Q":"'+ qty +'","OT":"MARKET","P":"INTRADAY","VL":"DAY","NEAR":"50","CAL":"-500","AT":"ZERODHA"}]'
Exit_Call = '[{"AS":"NIFTY21MAR","E":"NFO","P":"MIS","AT":"ZERODHA"}]'
Exit_Put = '[{"AS":"NIFTY21MAR","E":"NFO","P":"MIS","AT":"ZERODHA"}]'
long = close > open
short = close < open
if inDateRange and tradeType != "NONE"
strategy.entry("long", strategy.long, when=long == true and tradeType != "SHORT",alert_message=Buy_Call)
strategy.entry("short", strategy.short, when=short == true and tradeType != "LONG",alert_message=Buy_Put)
strategy.close("long", when=short == true and tradeType == "LONG" ,alert_message=Exit_Call)
strategy.close("short", when=long == true and tradeType == "SHORT" ,alert_message=Exit_Put)
if (not inDateRange)
strategy.close_all()
strategy.close_all(when=sessCloseCond)