Edit Your Comment
Calculation P/L by comment indicator for MT4

forex_trader_170403
Jan 04, 2014 zamanından beri üye
4 iletiler
Sep 16, 2015 at 20:08
Jan 04, 2014 zamanından beri üye
4 iletiler
Hello
is there any any indicator or scripts for Calculation P/L for all orders which have the same comments
If i have this opening orders
Buy EURUSD : comment S1
Sell EURCAD : comment S1
Sell GBPUSD : comment S1
Buy EURUSD : comment S2
Sell EURCAD : comment S2
Sell GBPUSD : comment S1
when i apply the indicator on the chart i want it to show how much the total profit for all trades with the same comments like this
Trade S1 : +25
Trade S2 : -50
is there any any indicator or scripts for Calculation P/L for all orders which have the same comments
If i have this opening orders
Buy EURUSD : comment S1
Sell EURCAD : comment S1
Sell GBPUSD : comment S1
Buy EURUSD : comment S2
Sell EURCAD : comment S2
Sell GBPUSD : comment S1
when i apply the indicator on the chart i want it to show how much the total profit for all trades with the same comments like this
Trade S1 : +25
Trade S2 : -50
Apr 10, 2015 zamanından beri üye
17 iletiler
Jan 03, 2016 at 08:34
Apr 10, 2015 zamanından beri üye
17 iletiler
used to work of the similar switching on differing ones with the signal to run on opening position and those worked of the good chance with the different comment i guess more to work with the calculation on counting of pips.
the comment should works of well on referring initials as ea opening new ones according to the notice.
the comment should works of well on referring initials as ea opening new ones according to the notice.
Jun 14, 2013 zamanından beri üye
127 iletiler
Jan 03, 2016 at 10:55
Jun 14, 2013 zamanından beri üye
127 iletiler
Don't know of one, but if you give me more details I could perhaps write you a custom indicator that can do that. It seems fairly easy to do... :)
Keep it simple, be disciplined, get rich slowly and above all protect your equity!
Mar 02, 2010 zamanından beri üye
95 iletiler
Jan 04, 2016 at 08:46
Mar 02, 2010 zamanından beri üye
95 iletiler
StringFind() and OrderProfit() will help
ixbone@
Apr 10, 2015 zamanından beri üye
17 iletiler
Jan 06, 2016 at 08:20
Apr 10, 2015 zamanından beri üye
17 iletiler
the unique on switching as referring use of the martian gale or adaptives trading strategy on occupying notice with the entry by the comment comparing with those as using the magic numbers with the order command;
with the double string of option as those might work with the captures of the different option on referring initials to leaves with the further notification of initials on preparing the future order on creating new position with the trading.
with the double string of option as those might work with the captures of the different option on referring initials to leaves with the further notification of initials on preparing the future order on creating new position with the trading.
Jan 05, 2016 zamanından beri üye
1097 iletiler
Jan 13, 2016 at 08:17
Jan 05, 2016 zamanından beri üye
1097 iletiler
//---------------------------------------------------------------------------------------------------
double count_s1 = 0;
double count_d2 = 0;
for(int x=OrdersTotal()-1; x>=0; x--){
if(OrderSelect(x,SELECT_BY_POS,MODE_TRADES){
if(OrderComment()=="S1"){count_s1=count_s1+OrderProfit();}
if(OrderComment()=="S2"){count_s2=count_s2+OrderProfit();}
}
}
Comment("S1 profit is: $"+(string)count_s1+" S2 profit is: $"+(string)count_s2);
//------------------------------------------------------------------------------------------------------
that will parse your order basket and then display on screen what your profit level is.
If you need any additional help, let me know.
- Professional4x
double count_s1 = 0;
double count_d2 = 0;
for(int x=OrdersTotal()-1; x>=0; x--){
if(OrderSelect(x,SELECT_BY_POS,MODE_TRADES){
if(OrderComment()=="S1"){count_s1=count_s1+OrderProfit();}
if(OrderComment()=="S2"){count_s2=count_s2+OrderProfit();}
}
}
Comment("S1 profit is: $"+(string)count_s1+" S2 profit is: $"+(string)count_s2);
//------------------------------------------------------------------------------------------------------
that will parse your order basket and then display on screen what your profit level is.
If you need any additional help, let me know.
- Professional4x
If it looks too good to be true, it's probably a scam! Let the buyer beware.

forex_trader_137597
Jul 04, 2013 zamanından beri üye
86 iletiler
Jan 21, 2016 at 16:18
Jul 04, 2013 zamanından beri üye
86 iletiler
i attach one ea i made for myself
It has the ability you are loking for plus it can close all orders that have same comment at a certain amount of profit, It has also a display to show comment profit
It has the ability you are loking for plus it can close all orders that have same comment at a certain amount of profit, It has also a display to show comment profit

*Ticari kullanım ve istenmeyen e-postalara müsamaha gösterilmez ve hesabın feshedilmesine neden olabilir.
İpucu: Bir resim/youtube urlsi yayınlamak, onu otomatik olarak gönderinize gömer!
İpucu: Bu tartışmaya katılan bir kullanıcı adını otomatik olarak tamamlamak için @ işaretini yazın.