Hi, I'm trying to calculate stats not on one symbol but for portfolio. Lets say I want to count gaps bigger then x percent.
I built a Signal and used it with Signal Statistics to get result for one symbol. In my case I want to calculate more variables and for many symbols at once.
In the Homework #10 there are example how to use backtesting and Long/Short trades at the session end to calculate desired result.
But in this case can get max 2 results ( by number Long and Short trades)
Trading Rule Settings and Backtesting tokens
This page reviews the 3 main settings (Quantity, Price, Action) associated with a Trading Rule used in a Trading System. The use of SHOW statements and NOTE tokens as diagnostic tools is highlighted. A full list of RTL "backtesting" tokens, with a focus on the "Context" Token (CTX), is also presented.