Modify and debug EA functions that scans and for slpoints that will produce lotsize that is neither greater or less than the max& min lotsize for Deriv Synthetic indices.

Spécifications

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  

Dossiers :

PNG
lotsize_.PNG
30.5 Kb

Répondu

1
Développeur 1
Évaluation
(112)
Projets
131
22%
Arbitrage
5
0% / 60%
En retard
3
2%
Occupé
2
Développeur 2
Évaluation
(185)
Projets
190
27%
Arbitrage
0
En retard
3
2%
Gratuit
3
Développeur 3
Évaluation
(52)
Projets
71
44%
Arbitrage
21
14% / 67%
En retard
8
11%
Gratuit
4
Développeur 4
Évaluation
(10)
Projets
14
0%
Arbitrage
3
67% / 33%
En retard
1
7%
Occupé
5
Développeur 5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
6
Développeur 6
Évaluation
(66)
Projets
143
34%
Arbitrage
11
9% / 55%
En retard
26
18%
Travail
Commandes similaires
Make EA 30+ USD
i can pay 40usd if completed by the end on today uk time this indicator will make a good ea but the aggressive entry moves and conservative entry is stationary and target tp2 which will make it a 0.3:1 aggressive entry is around a 1:1 with Tp 2 I want conservative entry and do aggressive entry pls do that too with the option too switch in the settings I want sl tp and trailing stop fire filter and auto lots fixed lot
Smithdrift Ea 35+ USD
Ii have a manual trading trading I use to trade profitable Two time frame is use Indicators are Moving averages ,,macd,,and stochastic The strategy goes as follows ....on higher time frame window stochastic is concidered ... example 30 min time frame is use for this example ... stochastic on 30 min diverge. Main line dross signal line ()above that is a buy signal (2) 1 min chart is concider as filter ...macg default
Seeking someone who can create a robot or algorithm capable of sending 5-10 daily forex signals, each with 3 types of take profit, and achieving a high success rate similar to the one shown in the attached picture
RSI+MA 30 - 70 USD
As seen in the pictures.. Respond and I will give full specifications of what the bot should execute trades.. Please let's not watse each other's time if the pictures don't give you a hint of what is needed
I need an expert in the development of a fully automated trading robot For MetaTrader. The Trading Robot must be "Web based" so it can be accessed or used through a website, You can view a screenshot here; https://www.awesomescreenshot.com/image/48030918?key=79b0ff91455d862746e9b649341f4cdb Why do i need? Simple Enough, This is what i need from my Trading Robot EA. The Trading Robot can only be accessed through a
Maybe this indicator will make a good ea but the aggressive entry moves and conservative entry is stationary and target tp2 which will make it a 0.3:1 aggressive entry is around a 1:1 with Tp 2 I want conservative entry and do aggressive entry pls do that too with the option too switch in the settings I want sl tp and trailing stop fire filter and auto lots fixed lots I get
Metatrader 30+ USD
I would like to calculate the deviations between the companies listed below with Meta Trader. Would you be interested? BETWEEN 01.00 AT NIGHT AND 00.00 OF THE NEXT DAY (FOR HOURS WHEN THE GOLD MARKET IS OPEN) *Instant comparison of prices of the same parities of different companies *Determination of deviation rates in downward or upward movements (average prices, prices below and above the average) *Detection of
Fully automated with profitable setfiles. I will pass you funded challenges in few days. Included: FXIFY, FTMO, KORTANA FX, The5ers, etc. You name it You dont have to do anything, just contact me and ill do rest
EA 30+ USD
I have an EA bot CODE intend to be use on the MT5 platform, and all I need is a debug expert with full knowledge of what they are doing. The Skillset i need from you as a debugger are: 1. Trading Robot/Robot Debugging 2. Strategy Optimization 3. News Filter PS: I AM WILLING TO PAY $30 AS THAT IS WHAT I HAVE. IF YOU ARE NOT OKAY WITH THE PAY, PLEASE DON'T EVEN BOTHER DECLARING INTEREST I will send you the codes and
Greenprint strategy 30 - 100 USD
Hello i need someone who can create an indicator to show the resistance support and pivot areas like in the shown images the indicators are bollinger bands moving averages also we have rsi and ma . Pictures below. You should be able to do work properly requesting a trial check when work is complete the indicator should also work with synthetic indices

Informations sur le projet

Budget
30 - 50 USD
Pour le développeur
27 - 45 USD