Adding What-if Scenario – Close positions after “x” bars and/or “x” minutes”
7 replies
shawnnny
8 years ago #114390
Hi everyone,
I would like to know how I could create the following What-if scenario: Close opened positions after “x” bars and/or “x” minutes.
Unfortunately I do not have any programming background and have no idea how to create it with the Java language. Would someone be able to assist me please? This what-if scenario or condition would be a great addition for Quant Analyzer that all users can benefit from.
Thanks.
Regards,
Shawn
shawnnny
8 years ago #133763
Or perhaps might it be Equity Control if it’s not possible in What-if ?
tomas262
8 years ago #133814
You actually cannot test ‘Close opened positions after x bars and/or x’ in Quant Analyzer because you need to have market price data for this to find out what individual trade result would be. Everything Analyzer has is finalized trade results. But StrategyQuant (Improve) can do this if you have strategy generated in it.
shawnnny
8 years ago #133818
Thanks for the response Tomas. What about a scenario of, “What-if the positions of greater than 60 minutes are not factored into the final results”, regardless making small/big profit or small/big losses? Would this be possible? Thanks again.
eastpeace
8 years ago #133819
About “exit after X bars”, I would like the setting below.
if the position is profit, then exit after X1 bars, and if the position is loss, then exit after X2 bars.
olivier
7 years ago #138428
hi
Here is modules snipnet whjth upgrade,
And an evolution off the concept off add contract moving average.
it’s EMM Dissm with bolinger band….
[i][b][font=tahoma]kind regards[/font][/b][/i],
[font=tahoma][i][b]#OP[/b][/i][/font]
krzysiaczek99
7 years ago #139716
You actually cannot test ‘Close opened positions after x bars and/or x’ in Quant Analyzer because you need to have market price data for this to find out what individual trade result would be. Everything Analyzer has is finalized trade results. But StrategyQuant (Improve) can do this if you have strategy generated in it.
So it is not possible to load the market price additionally to the trades already loaded ??? I believe some method like ‘csv read’ is already implemented. How we can use it using snippets ?? Can you give an example
how to load such data, sync with trade lists and than modify profits of trades ??
Krzysztof
tomas262
7 years ago #139740
Hello Krzysztof,
Quant Analyzer is not a backtester. You cannot intervene into individual trade data. You would have to edit the trade list directly outside QA (you can edit CSV or HTML report manually)
Viewing 7 replies - 1 through 7 (of 7 total)