clearpicks
Registered: Aug 2003
Posts: 148 |
10-04-05 02:10 PM
Runningbear,
The things that those integrated trading buttons in eSignal can do are very limited, therefore I use EFS to draw a few buttons on the chart. Whenever a button is toggled, a specific strategy is activated/deactived by turning on/off a flag (boolean variable) in the same EFS. The pseudocode seems like
function toggleButtonA
{
strategyA = ! strategyA;
drawTextRelative(.............................., "Button_A");
}
function main()
{
if ( getCurrentBarStatus() == BARSTATE_ALLBARS ) {
drawTextRelative(.............................., "Button_A");
}
if ( getCurrentBarIndex() == 0 ) {
if ( strategyA ) {
// all codes related to strategy A are here
// send buy/sell orders here
}
}
}
I heard eSignal was working on its generic broker support, but I don't know how complete the features are going to be. The current generic broker plugin seems too preliminary and not enough to be used in a serious ATS. That is the reason I am shopping around for a good bridge between esignal and TWS.
- Clearpicks
|