CALL identical indicators to prevent curve fitting.

Forums ProRealTime English forum ProOrder support CALL identical indicators to prevent curve fitting.

Viewing 6 posts - 1 through 6 (of 6 total)
  • #59374

    This is a bit complicated but I will try to explain what I am considering doing as best as I can.

    I have written an indicator that returns six possible results for each candle. I have then written an indicator that basically does the same calculations as the first one and then analyses them. It looks at each candle and then compiles a set of results as a probability survey. So for example if indicator one returns a 1 for this candle what is the historical probability that the next candle will be an up one or a down one. It also gives historical performance for each possible option and returns a total of twenty four results for the various possibilities. Then I’ve written a strategy that uses the probability results from the second indicator (by CALL) to make decisions on when and and in what direction to trade for the highest probability of a positive return. My only one issue is that the probability indicator uses one variable and that is a time based one and I hate time based variables as they are so easily curve fitted. So I was wondering if there was any reason why I shouldn’t have say five or more identical probability indicators (but with different names obviously) with the variable set differently in each and then CALL them all from the strategy and then allow the strategy to analyse the results and pick a mid set of values to prevent curve fitting. A sort of continuous optimization in a running strategy.

    I’ve not used the CALL function much in the past due to the fact that it has always been so slow but it seems quite quick with the probability indicator that I have created. Any thoughts on why I shouldn’t continue down this road would be much appreciated before I waste a day of my short time on this spinning globe trying to complete it.

     

    #59382

    You can even make only one indicator called x times in a loop (with dynamic parameters made / calculate with the loop iteration)  and compute your median value at the end of it.

    CALL should now be more faster with the new engine, but i don’t think it has landed already for IG and PRT-CFD customers.

    #59385

    I think I understand what you are saying with the loop thing but I can’t quite picture the code in my mind – what with being a bit of a CALL virgin and all that. Could you provide a quick example when you have time.

    #59386

    Don’t worry about the example (unless you want to provide one for others viewing this thread) as I think I understand what you mean. A loop changing the variable parameter and then at each iteration of the loop the results can be stored based on the position in the loop or just on whether they are better or worse than previous results. Then they can be analysed and a median found.

    #59388

    One more question. Can you use CALL in a LOOP in an indicator to CALL another indicator? If so then it would be possible to have an indicator that records a set of results from my probability indicator from a range of variable values and then analyses them for best prevention of curve fitting and then that indicators results are CALLed by the strategy.

    So I would have an indicator analysing an indicator that is analysed by an indicator that feed the results to a strategy. If so then a whole new world of complicated possibilities opens up to me!

    #59390

    Yes it is possible. Until you get an infinite loop error, you can call an indicator inside another indicator’s loop.

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login