Login Page - Create Account

Support Board


Date/Time: Tue, 14 May 2024 19:34:05 +0000



Post From: Trading System Based on Alert Condition

[2018-03-02 10:10:43]
User35525 - Posts: 180
I have enabled Enable Debugging Output, but the reason for the ignored alert isn't given in the Trade Service Log.

I've written ACSIL studies for systems in the past and those worked fine. Is the code for this study available so I can hack on it to maybe see why the alert is ignored per this example?:
Automated Trading From an Advanced Custom Study: Debugging/Troubleshooting Automated Trading Systems

The alert shows TRUE in Alert Manager >> Alerts Log (that is good), but no trade happens until I press "B" or "S" on my keyboard for a market buy or sell (my trading keyboard shortcuts). After attached orders close the trade, the Alert Manager shows an alert type called "Trading".

These are my Trading System Based on Alert System settings:

Enabled | Yes
Number of Bars to Calculate | 1
Order Action on Alert | Buy Entry
Evaluate on Bar Close Only | Yes
Send Trade Orders to Trade Service | Yes
Maximum Position Allowed | 1
Maximum Long Trades Per Day | 20
Maximum Short Trades Per Day | 20
Enable Debugging Output | Yes
Cancel All Working Orders On Exit | Yes
Allow Trading Only During Time Range | No
Start Time For Allowed Time Range | 00:00:00
End Time For Allowed Time Range | 00:00:00

Alerts TAB
Enabled | X
Reset Alert Condition on New Bar |
Alert Only Once per Bar |
Evaluate On Bar Close | X
Use Full Precision When Evaluating |
Log Evaluated Formula at Each Eval...|


Of course Trade >> Auto Trading Enabled (Chart) and Trade >> Auto Trading Enabled (Global) are set. Running SC 1708.
Date Time Of Last Edit: 2018-03-02 10:59:47