Test Tradingview strategy alert
After server setup is done, this guide shows how to test you can receive strategy alert from Tradingview and execute order

//@version=5
strategy("My test strategy")
_TestPeriod() =>
time >= timenow - 10000000 ? true : false
if _TestPeriod()
if (bar_index % 2 == 0)
strategy.entry("My Long Entry Id", strategy.long)
else
strategy.entry("My Short Entry Id", strategy.short)

Last updated
