• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Suggestion I will make a Free EA with your Indicator

Hello Tanaka,
Opposite close with minimum profit works fine with MaxTrade=1, but more than 1 trades then the EA doesn't close trade with profit.
Please modify, opposite close profit is applied for a single trade, not basket.
Oh, you mean single trade.ok
 
Hello Tanaka,
Opposite close with minimum profit works fine with MaxTrade=1, but more than 1 trades then the EA doesn't close trade with profit.
Please modify, opposite close profit is applied for a single trade, not basket.
If you have 5 orders total now.
1. $20
2. -$5
3. $10
4. -$5
5. $2

So how can I code? Sum all profit and if it is more than xxx dallers, close with opposite?
 
If you have 5 orders total now.
1. $20
2. -$5
3. $10
4. -$5
5. $2

So how can I code? Sum all profit and if it is more than xxx dallers, close with opposite?

In that case, if the opposite signal appears and profit is set at 1 dollar, I want the EA close trade number 1, number 3 and number 5. Trade with negative profit (#2 and #4) still open, then the next opposite signal appears again and profit condition is satisfied, the trade will be closed.
 
In that case, if the opposite signal appears and profit is set at 1 dollar, I want the EA close trade number 1, number 3 and number 5. Trade with negative profit (#2 and #4) still open, then the next opposite signal appears again and profit condition is satisfied, the trade will be closed.
Wow, it is a little bit complicate code... I need to check each order profit ..Give me some time.
 
I GET THIS ERROR
upload_2019-6-20_15-40-38.png

TANAKA SAN, CAN YOU HELP ME FIX THIS?
PING my VPS is 195ms.
thank you!
 

Attachments

  • upload_2019-6-20_15-40-38.png
    upload_2019-6-20_15-40-38.png
    5.1 KB · Views: 956
This indicator was sent by a friend before. I see, sir. You didn't get him the index. I have tested it, the index is very accurate, the accuracy of this index is very high. I saw it lasted only four hours. Very good. I'd like to try it, too. Please make it EA. Just press the arrow and order it.

报错
 

Attachments

This indicator was sent by a friend before. I see, sir. You didn't get him the index. I have tested it, the index is very accurate, the accuracy of this index is very high. I saw it lasted only four hours. Very good. I'd like to try it, too. Please make it EA. Just press the arrow and order it.

报错
it repaints
 
Back
Top