I have $92400 balance, but only want to risk % of the $2400. How can I change the code to risk only from the $2400+
If I go below $90,000 I lose the account. I don't want to risk 2% of the full $92,400. I only want to risk 2% of the $2400.
Could I write in the code somewhere that the equity is the account actual equity minus $90,000.
I have $92400 balance, but only want to risk % of the $2400. How can I change the code to risk only from the $2400+
If I go below $90,000 I lose the account. I don't want to risk 2% of the full $92,400. I only want to risk 2% of the $2400.
Could I write in the code somewhere that the equity is the account actual equity minus $90,000.
Hi
Search for this line:
double equity=AccountInfoDouble(ACCOUNT_EQUITY);
and replace it with:
double equity=AccountInfoDouble(ACCOUNT_EQUITY)-90000;
Hi, Thanks for this wonderful script.
I'm trying to compile it in my MetaEditor, buy I face this error, How can I fix this?
cannot convert 0 to enum 'ENUM_TRADE_REQUEST_ACTIONS'
The error refers to this line:
MqlTradeRequest request= {0};
I'm using build 3219 of MT5 (25 Feb 2022).
Thanks.
Hi, Thanks for this wonderful script.
I'm trying to compile it in my MetaEditor, buy I face this error, How can I fix this?
The error refers to this line:
I'm using build 3219 of MT5 (25 Feb 2022).
Thanks.
Hi, thanks for your notice.
The script is updated, you can download the new version.
Hi, thanks for your notice.
The script is updated, you can download the new version.
Hi mate, thanks for the update.
I have another problem, I wonder if you help me.
I trade with ICMarkets, which is allowing me to trade indices with minimum lot size of 0.1 and volume step of 0.1 lot.
How can I make a change in your script that I can fix this issue? Here's an example of the error in DAX:
2022.03.09 11:55:29.002 Trade Opener (DE40,M1) Alert: DE40 Error in order send: 1 10030 lots= 0.14Thanks a lot. Stay safe.
Hi mate, thanks for the update.
I have another problem, I wonder if you help me.
I trade with ICMarkets, which is allowing me to trade indices with minimum lot size of 0.1 and volume step of 0.1 lot.
How can I make a change in your script that I can fix this issue? Here's an example of the error in DAX:
Hi, thank you.
Change this lines:
lots=NormalizeDouble((remainedLoss/((ask-sl)*tick/_Point)/totalPositions),2);
lots=NormalizeDouble((remainedLoss/((sl-bid)*tick/_Point)/totalPositions),2);
to:
lots=NormalizeDouble((remainedLoss/((ask-sl)*tick/_Point)/totalPositions),1);
lots=NormalizeDouble((remainedLoss/((sl-bid)*tick/_Point)/totalPositions),1);
(number 2 becomes 1 in the lines)
Regards
i get these errors when trying to use it.
2022.10.06 11:35:42.303 4click Trade Opener_v1.1 (USDJPY,M3) Alert: USDJPY Error in order send: 1 10030 lots= 0.73
2022.10.06 11:37:31.399 4click Trade Opener_v1.1 (USDJPY,M3) Alert: USDJPY Error in order send: 0 10030 lots= 0.38
I FIXED IT AND MADE IT EVEN BETTER WITH CLICKABLE INTERFACE BY COMBINING IT WITH ONE MORE PANEL
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
4click Trade Opener:
By using 4click Trade Opener script, you don't need to calculate trade lot size when you opening orders.
Author: Behzad Movaghar