Support Board
Date/Time: Sun, 24 Nov 2024 17:39:17 +0000
Post From: Inconsistent Execution from Trading Systems/Alert Condition Study
[2024-05-09 15:43:29] |
TraderBiku - Posts: 36 |
Hello, I am encountering some difficulties getting the Trading System based on Alert Condition Study to execute consistently, and I'm having a hard time isolating the issue. I have an instance of the study that has a fairly simple piece of code that I wrote in it, and when I leave the study "Enabled" it seems to execute this code properly. However, my desired functionality is to use the ACS Control Bar Button Enable/Disable system to turn the Study "On/Off" during the course of the session. I find that when I do this, I get very inconsistent execution results, and that the study frequently does not execute the next trigger(s) properly after I turn the system "On". This seems to be especially true if I turn the system "On" DURING the formation of the bar that eventually becomes the "trigger" bar as per the custom code in the study. I have the Trading System study set to "Evaluate On Bar Close" so my assumption would be that turning the study "On" after the trigger bar starts forming, but before it closes would not be an issue - is this an incorrect assumption? I also find that I get different results if I try to replay the same sequence in replay compared to live (I am using the Trading Evaluator data feed for both replay and live). I have scoured the Trade Service Log for errors, but cannot find anything that seems related to why the signal isn't firing. I occasionally see a statement saying "Trading is not allowed, Reason: Formula state has not changed" but this cannot be true because the Trading Study is printing a marker on the bar showing that the formula is "True" for that bar, and the prior bar is not "True"; I also have the "Reset Alert Condition on New Bar" function enabled on the Trading Systems study, in an attempt to address this message. In short, the only time I seem to get the expected results for the study is when I leave it "Enabled" for long periods of time, but my wish is to be able to Enable and Disable it in real time, and ideally DURING the formation of the bar that will eventually become the "trigger" bar for the code in the study. Please let me know if I can clarify the issue further - thank you. Date Time Of Last Edit: 2024-05-09 15:45:02
|