Termos de Referência
Below i have placed a the failed attempt to make functions code in mql5 the system should
double input riskPercent=20.0; void OnTick() { //--- ScanSLPoints(); } //+------------------------------------------------------------------+ double Calculate_lotsize(double Riskpercent,double slDistance) { double ticksize=SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_SIZE); double tickvalue=SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE); double lotstep =SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP); // Print(ticksize,"ticksize ", tickvalue," tickvalue ",lotstep,"lotstep"); if(ticksize==0 || tickvalue==0 || lotstep==0) { Print(__FUNCTION__,"< Lotsize cannot be calculated...."); return 0; } double riskMoney =AccountInfoDouble(ACCOUNT_EQUITY)*Riskpercent/100; double Moneylotstep=(slDistance/ticksize)*tickvalue*lotstep; if(Moneylotstep==0) { Print(__FUNCTION__,"< Moneylotstep cannot be calculated...."); return 0; } double lots =MathFloor(riskMoney/Moneylotstep)*lotstep; Comment("riskmoney ",riskMoney,"Moneytobelost",Moneylotstep); return lots; } void ScanSLPoints() { double minLot = SymbolInfoDouble(Symbol(), SYMBOL_VOLUME_MIN); double maxLot = SymbolInfoDouble(Symbol(), SYMBOL_VOLUME_MAX); double balance = AccountInfoDouble(ACCOUNT_BALANCE); double askPrice = SymbolInfoDouble(Symbol(), SYMBOL_ASK); for (double slPoints = 1.0; slPoints <= askPrice; slPoints += Point()) { double lotSize = Calculate_lotsize(riskPercent, askPrice - slPoints); if (lotSize >= minLot && lotSize <= maxLot) { Print("SL Points: ", slPoints, " Lot Size: ", lotSize); } } }the code above should show and display
Print("SL Points: ", slPoints, " Lot Size: ", lotSize);
the slpoints should produce an equivalent lotsize which should always be in the range of max_lot and minlot for a certain balance so with every change in balance it should recalculate the slpoints and i must be able to select a desired lotsize so that means the data can be stored in an external file so the system or functions should be run whenever there is a signal because of the dynamic price structue of boom and i have experienced runtime errors as shown in lotsize.png
Respondido
1
Classificação
Projetos
122
20%
Arbitragem
5
0%
/
60%
Expirado
2
2%
Ocupado
2
Classificação
Projetos
188
27%
Arbitragem
0
Expirado
3
2%
Livre
3
Classificação
Projetos
70
43%
Arbitragem
21
14%
/
67%
Expirado
8
11%
Livre
4
Classificação
Projetos
10
0%
Arbitragem
3
33%
/
33%
Expirado
0
Ocupado
5
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
6
Classificação
Projetos
143
34%
Arbitragem
10
10%
/
60%
Expirado
26
18%
Trabalhando
Pedidos semelhantes
Exciting mql5 ea to make changes and redo
100 - 200 USD
I am in search of a skilled MQL5 developer with a proven ability to optimize trading robots across various assets, including synthetic indices like V75, Boom and Crash, gold, US30, US100, and more. I'm looking for an experienced developer to enhance my multi-asset trading EA, which was originally developed exclusively for V75 and is based on the smart money concept. This comprehensive EA, based on an market indicator
Seeking an experienced dev to develop an EA for Boom and Crash based on a moving average crossover. Once order is placed a Trail SL should follow. Dev should be able to add to the strategy/optimize it. I have an EA you can look at as a guideline
Fractals Hedge Master
50 - 90 USD
I need a very simple EA which: 1- Should work on three indicators (Moving Average, Parabolic SAR, MACD and Fractals). The option to turn on/ off for these indicators should be available for the trader as per his strategy. Of course, if the trader wants to turn on one/ two/ three indicators, further options to determine the type/ values (I.e Parameter) should be asked by the EA. 2- The system works on top/
je vous envoie ce messages car j'ai une stratégie de trading mais je n'arrive pas à la créer , Les condtions: LONG si l'indicateur LSMA croise hull suite de couleur verte et que la valeur du marché est supérieure à celle des 2 indicateur il faut acheter SELL si l'indicateur LSMA croise hull suite de couleur rouge et que la valeur du marché est inférieure à celle des 2 indicateur il faut acheter SL dernier swig high
Hello, I am looking for an experienced MQL5 developer who can review and correct my existing 10 MetaTrader 5 utilities. Currently, some of my utilities are encountering errors, including "undeclared identifier" and other general issues. I need someone who can identify, rectify these errors, and ensure that all 10 utilities function properly. Requirements: Experience with MQL5 programming and MetaTrader 5 Ability to
I Want a bot that will work for my tradingview strategy and also works perfectly, Kindly reach out to me so I can explain the project more further and get started without any further delay
Hello I have Order Flow Chart & Software Depends on Ninjatrader I want to EA a trading robot that works on different platforms via API Expert NinjaTrader Programmer for Cross-Platform Trading Robot I'm in need of a skilled NinjaTrader programmer to develop a cutting-edge trading robot that seamlessly operates across various platforms via API integration? I want a customized Expert Advisors (EAs) tailored to your
Looking for prop firm Expert advisor
1999 - 4999 USD
Looking for EA's that can pass prop firms Only message me if you are serious thank you https://t.me/ marketkillerrr Message me on tele^Gram thanks Or you can msg me here it doesn't matter please do not waste my time... Price is negotiable i can pay up to 30,000$
An expert is required based on a specific index of the market The expert does the following Opens 0.01 micro lot per $1000 A buy trade is opened if the indicator signal is buy and can be entered against the signal A sell trade is opened if the indicator signal is sell and can be entered against the signal A goal defined by the number of points Stop loss is limited to the number of pips Profit tracking Stop loss
Convert tradingview strategy to MT4
30 - 35 USD
Hello .I have existing Tradingview strategy that I will like to automate to Mt4 EA based on my specification . I need an expert in the field that have experience in both tradingview and MT4
Informações sobre o projeto
Orçamento
30 - 50 USD
Desenvolvedor
27
- 45
USD