Login Page - Create Account

Support Board


Date/Time: Tue, 21 May 2024 05:46:14 +0000



Post From: Multiple sim accounts same chart?

[2016-06-30 04:34:09]
enemyspy - Posts: 304
from referring to this link:
http://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#SubmittingOrdersDifferentSymbolAccount

I am trying to have one chart Trade multiple systems/signals in different accounts. I need it to trade all of these systems at once. Because it stores the outcomes of all those signals, and other stats at the time of the trade, and sends the signals to a different chart/ second layer that evaluates all those signals based on the historical stats attached to them, and decides if the signal should be traded live in addition to the sim trade. The thing is when I go to the trade activity log all the trades are stored in one account (Sim1). You will probably say I should trade all the systems off seperate charts. Which would take some doing but could be done this way. I would just like to avoid it at all costs because it will be slower. Is there something wrong with the way I have set this up below?

Any way I have the code set up with the following for unmanaged trading:


sc.AllowMultipleEntriesInSameDirection = true;
    sc.AllowOppositeEntryWithOpposingPositionOrOrders = true;
    sc.CancelAllOrdersOnEntriesAndReversals = false;
    sc.AllowOnlyOneTradePerBar = false;
if(UseSignal1)
{
s_SCNewOrder NewOrder;
NewOrder.TradeAccount = "Sim1";
//The rest of the order details are there but omitted;

if(BuySignal)
{
sc.BuyOrder(NewOrder);
}
if(SellSignal)
{
sc.SellOrder(NewOrder);
}
if(UseSignal2)
{
s_SCNewOrder NewOrder;
[b]NewOrder.TradeAccount = "Sim2";[/b]
NewOrder.OrderType = SCT_MARKET;
//The rest of the order details are there but omitted;

if(BuySignal)
{
sc.BuyOrder(NewORder);
}
if(SellSignal)
{
sc.SellOrder(NewOrder);
}
if(UseSignal2)
{
s_SCNewOrder NewOrder;
[b]NewOrder.TradeAccount = "Sim2";[/b]
NewOrder.OrderType = SCT_MARKET;

if(BuySignal)
{
sc.BuyOrder(NewOrder);
}
if(SellSignal)
{
sc.SellOrder(NewOrder);
}

Date Time Of Last Edit: 2016-06-30 04:34:42