You probably don't need all these functions . . . they are just passing globally declared variables than you can access directly . . . . so instead of . . .
ldLot = GetSizeLot();
you can use . . .
ldLot = LotSize;
and you don't even need that . . . you can simply do this . . .
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Take a look . . . it compiles.
ya, i knw...
so far i success added some command into it.
do this useful ??
what this for ??
} string GetCommentForOrder() { return(Name_Expert); } double GetSizeLot() { return(LotSize); } double GetTakeProfitBuy() { return(Ask+longTradeTP*Point); } double GetTakeProfitSell() { return(Bid-ShortTradeTP*Point); } double GetStopLossBuy() { return(Bid-LongTradeStopLoss*Point); } double GetStopLossSell() { return(Ask+ShortTradeStopLoss*Point); }wow ^^
so fast RaptorUK did it for me..
thanks..
ya, i knw...
so far i success added some command into it.
do this useful ??
what this for ??
You probably don't need all these functions . . . they are just passing globally declared variables than you can access directly . . . . so instead of . . .
you can use . . .
and you don't even need that . . . you can simply do this . . .
wow ^^
so fast RaptorUK did it for me..
thanks..
That's calculation for your extern input
You probably don't need all these functions s . . .
Just the lot size, the take profit and stop loss must be calculated based on Ask or Bid price (on buy or sell)
:)
mean we no need doing something for these ?