Another tweak needed on MT4 PS, If I set commission and used commission to set TP distance, the TP lines always moves to the correct % distance after the market price (bid/ask) receive update..
 
Could you please elaborate?
While loading the EA, on settings If I set DefaultCommission = 4 , DefaultTPLockedOnSL = true, TP_Multiplier = 2... If I press the key's to set the SL line, or press the key to set the entry line.... the TP always fits correctly (lock with commission) after the market price updates instead of instant upate... most of the times it sets the TP wrong if the market moves slowly...

Hint: moving lines by mouse click and dragging and relase seems working instantly..
 
Last edited:
While loading the EA, on settings If I set DefaultCommission = 4 , DefaultTPLockedOnSL = true, TP_Multiplier = 2... If I press the key's to set the SL line, or press the key to set the entry line.... the TP always fits correctly (lock with commission) after the market price updates instead of instant upate... most of the times it sets the TP wrong if the market moves slowly...

Hint: moving lines by mouse click and dragging and relase seems working instantly..
Sorry, still cannot reproduce it. Do you use level SL/TP or distance (points) SL/TP? Is it a pending order or an instant one?
 
Sorry, still cannot reproduce it. Do you use level SL/TP or distance (points) SL/TP? Is it a pending order or an instant one?
Sorry for that I could not explain you exactly what I would like to convey.. Kindly use the set file,, and when you use the shortcut key for the SL lines move.. the TP distance adjustment happens (in my case I've locked the TP for 1:2) only after the price gets updated in the market watch.. but when I move the lines with mouse drag and release the TP distance adjustment for the 1:2 happens instantly even the price didn't move in the market watch.. So,, the SL,Entry lines drag works instantly while I use the shortcut keys works only after the price updated in market watch.
 

Attachments

Last edited:
Sorry for that I could not explain you exactly what I would like to convey.. Kindly use the set file,, and when you use the shortcut key for the SL lines move.. the TP distance adjustment happens (in my case I've locked the TP for 1:2) only after the price gets updated in the market watch.. but when I move the lines with mouse drag and release the TP distance adjustment for the 1:2 happens instantly even the price didn't move in the market watch.. So,, the SL,Entry lines drag works instantly while I use the shortcut keys works only after the price updated in market watch.
I see. That's basically the same issue as you describe in your post here. It's the lack of chart redrawing after the shortcut keys. This will be fixed in the next version. Meanwhile, you shouldn't worry about it much because the actual values get updated instantly, it is just that the chart drawings don't reflect it until the next tick or timer redraw.
 
  • ℹ️
Reactions: EnrichWave
I see. That's basically the same issue as you describe in your post here. It's the lack of chart redrawing after the shortcut keys. This will be fixed in the next version. Meanwhile, you shouldn't worry about it much because the actual values get updated instantly, it is just that the chart drawings don't reflect it until the next tick or timer redraw.
That issue your quoted post is on MT5..
Yes Enivid, you are right. but If I place trades/orders on low liquidity times. the market moves very slow and if I place orders faster pending or instant.. most of the time it didn't set the TP correctly..
 
Last edited:
  • ℹ️
Reactions: Enivid
That issue your quoted post is on MT5..
Now I see... The issue seems to be different here. However, perhaps the MT5 issue isn't so simple either - it could be a combination of ChartRedraw missing and the actual TP not repositioned until the next recalculation. I will have to look deeper into this.
 
  • 👍
Reactions: EnrichWave
Dear @Enivid
Please consider about to show/enter the margin % of the going to take orders/positios on the main tab (may be under risk%) in the future updates..

kind regards
 
Hey, I need some help. I’m using Position Sizer. At first, I had an issue where MT5 would crash after a while because of it — the screen would freeze and my computer would reboot. Other than that, Position Sizer itself seemed to work normally.

After uninstalling both MT5 and Position Sizer and then reinstalling them, I now have a different problem: my computer no longer crashes or freezes, but whenever I click “Trade” to open a trade, MT5 crashes immediately.

What could be causing this? Has anyone had similar problems?

I have a MACBOOK AIR M1, macOS tahoe 26.4.1.
 
Hey, I need some help. I’m using Position Sizer. At first, I had an issue where MT5 would crash after a while because of it — the screen would freeze and my computer would reboot. Other than that, Position Sizer itself seemed to work normally.

After uninstalling both MT5 and Position Sizer and then reinstalling them, I now have a different problem: my computer no longer crashes or freezes, but whenever I click “Trade” to open a trade, MT5 crashes immediately.

What could be causing this? Has anyone had similar problems?

I have a MACBOOK AIR M1, macOS tahoe 26.4.1.
Unfortunately, the compatibility of MT5 with macOS is very poor. What I'd try is re-compiling the Position Sizer under different optimization modes (a small arrow near the Compile button in MetaEditor). Perhaps, that will help with your issue.
 
  • 👍
Reactions: mhj
Unfortunately, the compatibility of MT5 with macOS is very poor. What I'd try is re-compiling the Position Sizer under different optimization modes (a small arrow near the Compile button in MetaEditor). Perhaps, that will help with your issue.
Hey, I don't know what I did but when I clicked compile a few times it started working normally. At first it wouldn't work, it crashed again, but now it works. I'll see how it goes. Thanks, I know that mt5 is very bad for macbook...
 
  • 👍
Reactions: Enivid
Hi, I am having an issue where the EA does not calculate my position size correctly. When I change the % risk required, the "Result" field does not change. This is only on one pair (XAGUSD). It did this before on another pair but rectified itself. I have tried closing everything and restarting my computer but that hasn't worked. Does anyone know how I can resolve this?
 
Hi, I am having an issue where the EA does not calculate my position size correctly. When I change the % risk required, the "Result" field does not change. This is only on one pair (XAGUSD). It did this before on another pair but rectified itself. I have tried closing everything and restarting my computer but that hasn't worked. Does anyone know how I can resolve this?
That's probably because it's hitting either min or max volume set by your broker. If you attach a screenshot of the Main tab when this happens, I'll be able to tell you precisely.
 
That's probably because it's hitting either min or max volume set by your broker. If you attach a screenshot of the Main tab when this happens, I'll be able to tell you precisely.
1778670549496.pngYou can see the "result" doesn't match the input. 1778670585172.png When I change the input, the result doesn't change
 

Attachments

  • 1778670512152.png
    1778670512152.png
    31.2 KB · Views: 1
View attachment 37637You can see the "result" doesn't match the input. View attachment 37638 When I change the input, the result doesn't change
As you can see the calculated position size is already at 0.01 - that's the minimum supported by your broker. With your current stop-loss distance it results in a much higher risk than you intend. Unfortunately, there is no good away around this other than finding a broker that offers smaller contracts in XAG/USD.
 
As you can see the calculated position size is already at 0.01 - that's the minimum supported by your broker. With your current stop-loss distance it results in a much higher risk than you intend. Unfortunately, there is no good away around this other than finding a broker that offers smaller contracts in XAG/USD.
Ok, thank you - appreciate you having a look at this for me.
 
Main changes in the version 3.00 compared to the version 2.42 of the Position Size Calculator:
  1. The indicator converted to the EA.
  2. Added a color warning for incorrect volume shares when multiple take-profits are used.
  3. Changed the default Magic number input parameter to a non-zero value.
  4. Changed the default Ask for confirmation checkbox state to ticked.
  5. Fixed a bug that prevented PSC from removing the TP when ATR TP multiplier was set to 0.
  6. Fixed a bug when if only stop-loss is set to points display (SLDistanceInPoints = true while TPDistanceInPoints = false), dragging the SL line stopped working.
  7. Added checkboxes to apply spread adjustment to SL and TP in ATR multiplier mode. (@Crash101)
  8. Fixed an issue with additional TP/SL line labels when account size is zero. (@saleh222)
  9. Fixed multiple potential zero divide errors. (@gut)
  10. Added an input field to the Trading tab to limit the maximum number of trades to prevent opening too many trades. (@Armin)
  11. Fixed a bug with Entry/SL/TP lines deselecting on the platform's restart.
  12. Added the SymbolChangeReset input parameter to make the panel reset its fields to the defaults from the input parameters if the current chart's symbol is switched to another symbol and then back. (@EnrichWave)
  13. Fixed (almost) a potential narrow price scale when adding the Position Sizer to a wide-quote symbol. (Via two Github issues: 1, 2.)
  14. Fixed a potential problem with calculations when switching the chart's symbol.

Main changes in the version 3.00 compared to the version 2.42 of the Position Size Calculator:
  1. The indicator converted to the EA.
  2. Added a color warning for incorrect volume shares when multiple take-profits are used.
  3. Changed the default Magic number input parameter to a non-zero value.
  4. Changed the default Ask for confirmation checkbox state to ticked.
  5. Fixed a bug that prevented PSC from removing the TP when ATR TP multiplier was set to 0.
  6. Fixed a bug when if only stop-loss is set to points display (SLDistanceInPoints = true while TPDistanceInPoints = false), dragging the SL line stopped working.
  7. Added checkboxes to apply spread adjustment to SL and TP in ATR multiplier mode. (@Crash101)
  8. Fixed an issue with additional TP/SL line labels when account size is zero. (@saleh222)
  9. Fixed multiple potential zero divide errors. (@gut)
  10. Added an input field to the Trading tab to limit the maximum number of trades to prevent opening too many trades. (@Armin)
  11. Fixed a bug with Entry/SL/TP lines deselecting on the platform's restart.
  12. Added the SymbolChangeReset input parameter to make the panel reset its fields to the defaults from the input parameters if the current chart's symbol is switched to another symbol and then back. (@EnrichWave)
  13. Fixed (almost) a potential narrow price scale when adding the Position Sizer to a wide-quote symbol. (Via two Github issues: 1, 2.)
  14. Fixed a potential problem with calculations when switching the chart's symbol.
Can you at least change the point value from 0.01 limit to at least 0.00001 or include another option to show PIP VALUE other than POINT VALUE.......or just both coz sometimes when you want like 0.005 dollars per pip which is (0.005 ÷ 10) point value which can't be made....it's just an example but I hope you understand.....including the *PIP VALUE* would be of real help alot.....I think most would really appreciate
 

Attachments

  • Interface-Main (1).jpg
    Interface-Main (1).jpg
    3.6 KB · Views: 5
  • ℹ️
Reactions: Enivid
Let say my broker charge 1 lot for 4usd, on ea main tab that commission (one way) per lot... Does this mean if I input 4usd it will calculate risk+commission together?