Goblintrader21
New member
I've been backtesting strategies on futures and am curious how accurate this number is? Obviously, I know in live trading this number won't be realistic but does it at least give an accurate estimate? It also seems like the further back the timeline, the less the return makes sense. Does FPL not work over a long period of time? Appreciate any insight. Cheers.
Here's my code for buy orders in case anyone was curious.
Here's my code for buy orders in case anyone was curious.
Code:
# Bullish Orders
AddOrder(OrderType.BUY_TO_OPEN, condition = BuyTrigger,
price = close, 1, tickcolor = Color.GREEN, arrowcolor =
Color.GREEN, name = "BUY");
AddOrder(OrderType.SELL_TO_CLOSE, condition = SellTrigger,
price = open, 1, tickcolor = Color.RED, arrowcolor = Color.RED,
name = "SELL");
# Bearish Orders
AddOrder(OrderType.SELL_TO_OPEN, condition = SellTrigger,
price = open, 1, tickcolor = Color.RED, arrowcolor = Color.RED,
name = "SELL");
AddOrder(OrderType.BUY_TO_CLOSE, condition = BuyTrigger,
price = close, 1, tickcolor = Color.GREEN, arrowcolor =
Color.GREEN, name = "BUY");