To paraphrase: I am as an amoeba compared to you coding geniuses.
Thankyou,
Someone asked publically for it. It may have been you - don't know. It seemed like a good idea at the time and I never forgot it. It just took a while to get around to it.echoman01 » Mon Nov 12, 2018 8:03 pm wrote:Dear Steve, I said a silent prayer to the gods of FX trading for this very feature added to Desky not long ago.
To paraphrase: I am as an amoeba compared to you coding geniuses.
Thankyou,
Code: Select all
ArrayResize(GlobalTickets, GlobalTradesTotal + 1);
GlobalTickets[GlobalTradesTotal] = OrderTicket();
GlobalTradesTotal++;
//We are only concerned with market trades here
if (OrderType() < 2)
{
TotalCashUpl+= OrderProfit() + OrderSwap() + OrderCommission();
pips = (int) CalculateTradeProfitInPips(OrderType());
TotalPipsUpl+= pips;
GlobalTradesTotal+= 1;
}//if (OrderType() < 2)Thanks for this.BarraCoda » Tue Nov 13, 2018 4:58 pm wrote:Hi Steve,
desky shows me the doubled amount of trades open. For example: i have 8 trades open, but desky shows 16.
I´ve decided to look in the code before beeing an idiot and get banned![]()
I don´t know how to live on without SHF![]()
I hope i found the feature that tells desky to take every trade in double:
This goes from line 992 in the newest release:
I just don´t understand why we add twice to the GlobalTradesTotal variable. Once if we get a ticket which is owned by the EA, and twice when this ticket is a market trade. So we do have the same ticket twice in the GlobalTickets-array.Code: Select all
ArrayResize(GlobalTickets, GlobalTradesTotal + 1); GlobalTickets[GlobalTradesTotal] = OrderTicket(); GlobalTradesTotal++; //We are only concerned with market trades here if (OrderType() < 2) { TotalCashUpl+= OrderProfit() + OrderSwap() + OrderCommission(); pips = (int) CalculateTradeProfitInPips(OrderType()); TotalPipsUpl+= pips; GlobalTradesTotal+= 1; }//if (OrderType() < 2)
Am i right or am i just too stupid to understand your work?
btw TDesk and Desky are really a exciting new way to trade and plug'n'play EAs! Really nice!
Thanks Vince. I will look into it.pacinvest » Thu Nov 15, 2018 6:28 pm wrote:Hopefully this is helpful Steve.
Desky v2b: in trade management section. I am finding Break even set by itself works, jumping stop set causes EA to stop working, trailing stop is trying to set stops but returns error message 'invalid stops'. This was observed across two platforms one on my laptop and one on VPS and seems to be consistent, i.e. not isolated error.
cheers
vince
2d is in post 1, with what I think are fixes.pacinvest » Thu Nov 15, 2018 6:28 pm wrote:Hopefully this is helpful Steve.
Desky v2b: in trade management section. I am finding Break even set by itself works, jumping stop set causes EA to stop working, trailing stop is trying to set stops but returns error message 'invalid stops'. This was observed across two platforms one on my laptop and one on VPS and seems to be consistent, i.e. not isolated error.
cheers
vince