Please help me setup correct position sizing in mql5

工作已完成

执行时间2 天

指定

Hi there,

I'm requesting you to remotely access my pc over Zoom and show me how to update my code to correctly size position volume given an entry and stop loss price.  I posted this as a question in the forum but have had no response.

This is my progress so far.

#include <Trade\Trade.mqh>
#include <Expert\Money\MoneyFixedRisk.mqh>

CTrade trade;
CMoneyFixedRisk m_money;

double risk_percent = 2; // have also tried with 0.02 with same result in console.

void OnInit()
 {
  double entry_level = GetEntryLevel();
  double initial_stoploss = GetInitialStopLossLevel();
  double profit_target = GetProfitTarget(entry_level, initial_stoploss);
  m_money.Percent(risk_percent);
  double trade_volume = m_money.CheckOpenLong(entry_level, initial_stoploss);
  Print("entry: ", entry_level);
  Print("initial stoploss: ", initial_stoploss);
  Print("Vol: ", trade_volume);
 }

 

Thanks,

Brett.



反馈

1
开发者 1
等级
(71)
项目
103
20%
仲裁
6
0% / 83%
逾期
3
3%
空闲
2
开发者 2
等级
(192)
项目
232
30%
仲裁
1
100% / 0%
逾期
9
4%
空闲
3
开发者 3
等级
项目
0
0%
仲裁
1
0% / 100%
逾期
0
空闲
相似订单
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
Hello, I am looking for a highly skilled and experienced MT4 developer to assist with transferring a strategy currently coded in Pine Script to MetaTrader 4 (MT4). The project requires a professional who can handle this project successfully. I am looking for a dedicated and professional developer who can deliver high-quality results. If you have any questions or need further details about the project, feel free to
Hello, I am looking for a highly skilled and experienced MT5 developer to assist with modifying an existing MT5 file. I am looking for a dedicated and professional developer who can deliver high-quality results. If you have any questions or need further details about the project, feel free to reach out. Thank you for your time and consideration. I look forward to working with the right expert to bring this project to
An EA based on zigzag and some indicators ( The ea is already working i need to add this indicator to guide and control trades) Project Overview: - I am seeking a skilled freelance developer to enhance my existing Expert Advisor (EA) by creating source code that I can easily integrate. The EA currently uses Moving Averages (MA) and lines to place trades. I need to add a zigzag function with a true/false option and
We are looking for an experienced coder to develop a trading robot that utilizes two main indicators: 1) Brain Trend Signal 2) TMA (Triple Moving Average) Centered Bands. The robot should generate buy and sell signals based on specific conditions and include robust risk management features. Initial Requirements - **Indicators**: 1. Brain Trend Signal 2. TMA Centered Bands - **Timeframes**: - H4/D1 for trend
1. Combination of Market Profiles on daily basis a) this should be combined if the bell curve is similar to the previous day. Rotational day (volume - standard deviation). b) If breakout, new range should be drawn Conclusion: Market profile should be combined on daily after the market is closed 2. Use Vwap indicator, with 0.5 - slow trend, 1.0 - normal trend, 1.5 fast trend. The stop loss should be under the trend
I 'm looking for a bot to take trades . I have questions 1 . What is the win rate? It could be ! 2 . Any guarantee if the bot does not take a win trade
Make a 10000 plus script trading Expert advisor with detail and make it flawless with no errors no tiny mistakes and make it in mql 5 language. Make it adjustable for it to be able to trade on its own and not be disturbed and make it study the chart and be able to trade any currency pair. I have zero experience and I would just like to copy and paste the code in MetaTrader. Can you make it be compatible with both
I need a trading bot, My strategy works with the 1hour timeframe .My stop-loss should be put using Atr of the candle multiply by 1.5 then the value will be added or subtracted from my entry depending on if it's a buy or sell and my entry should be a candlestick pattern also in addition to when the 3 Ema corresponds .When the 8Ema is above the 20Ema and they are both above the 100Ema it is a buy and when the 20Ema is
Hello I need a simple heiken ashi candle indicator created . The difference I would like the I indicator to show more candles I know the heiken ashi candle open use the previous days open, close but I would like it to show more candles . So basically say if the previous candle is red the open heiken ashi should be coded using previous days open,close and low / 3. It Sound confusing but all im trying to do is get more

项目信息

预算
30+ USD
开发人员
27 USD
截止日期
 3 天