Multiple FPL Comparision in Single Strategy


Category:
0
0

Can we compare multiple FPL in Single Strategy to see which one works better for a particular Stock. Ex,

def conditionOne = Average(close, 8) crosses above Average(close, 21);
def conditionOneClose = Average(close, 8) crosses below Average(close, 21);
AddOrder(OrderType.BUY_TO_OPEN, conditionOne, open, name = “Condition One”);
AddOrder(OrderType.SELL_TO_CLOSE, conditionOneClose, Close, name = “Condition One Close”);
def FPL1 = FPL();

def conditionTwo = Average(close, 21) crosses above Average(close, 50);
def conditionTwoClose = Average(close, 21) crosses below Average(close, 50);
AddOrder(OrderType.BUY_TO_OPEN, conditionTwo, open, name = “Condition Two”);
AddOrder(OrderType.SELL_TO_CLOSE, conditionTwoClose, Close, name = “Condition Two Close”);
def FPL2 = FPL();

My question is in TOS can we compare FPL1 and FPL2 and see which one generate better results and show results as chart label?

Note: I have taken above code from one of Pete’s examples and modified little bit.

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on February 5, 2024 8:06 pm
42 views
0
Private answer

I moved your question out of the "Frequently Asked Questions" topic and into the "Strategy Guide Topic". The FAQ's are not intended for viewers to post. Since your question is related to chart strategies, the "Strategy Guide" topic is the appropriate place to post this question.

The answer to your question is no. This is not possible. The only solution is to load your strategy on multiple charts and adjust the user inputs on each and then view the FPL graph at the bottom of each chart to see which one has a performance which suits your goals.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 5, 2024 8:10 pm