I would like to have the option build in to select micro, mini or full lot calculation.
This makes it easier to use on micro and mini accounts without having to manually change the a/c balance after each trade to get the correct lotsizing displayed.
Thanks.
DragonMM Mod Request
Moderator: moderators
- ForcedShadow
- rank: <50 posts
- Posts: 24
- Joined: Sat Jun 25, 2016 11:30 am
- Reputation: 0
- Gender:
DragonMM Mod Request
If you reject the truth, you must believe a lie
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15562
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
Re: DragonMM Mod Request
ForcedShadow wrote:I would like to have the option build in to select micro, mini or full lot calculation.
This makes it easier to use on micro and mini accounts without having to manually change the a/c balance after each trade to get the correct lotsizing displayed.
Thanks.
There should be an input to use actual account. Set it to TRUE.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
- ForcedShadow
- rank: <50 posts
- Posts: 24
- Joined: Sat Jun 25, 2016 11:30 am
- Reputation: 0
- Gender:
Re: DragonMM Mod Request
Yeah it´s there, but still it will calculate as if it´s a standard lot a/c because it takes a lotvalue of 100.000 instead of 1000 for micro and 10.000 for mini. So now it takes a pipvalue of $10, instead of $0.1 for a micro a/c, which then produces the wrong lotsizing.
I can see the code, but want to be really sure I can change that without messing up related code and get inaccurate values.
I can see the code, but want to be really sure I can change that without messing up related code and get inaccurate values.
If you reject the truth, you must believe a lie
-
- rank: 150+ posts
- Posts: 152
- Joined: Tue May 17, 2016 8:16 pm
- Reputation: 16
- Gender:
Re: DragonMM Mod Request
Only 2 ways to find out! Do the mod and watch it - or Edit>Find>LOTSIZE and see where else it is.. Without seeing the rest of the code, I would either display all 3 options (micro/mini/std), or replace the constant with an extern variable such that the user can select their type of acct.
- ForcedShadow
- rank: <50 posts
- Posts: 24
- Joined: Sat Jun 25, 2016 11:30 am
- Reputation: 0
- Gender:
Re: DragonMM Mod Request
Sacrophage wrote:Only 2 ways to find out! Do the mod and watch it - or Edit>Find>LOTSIZE and see where else it is.. Without seeing the rest of the code, I would either display all 3 options (micro/mini/std), or replace the constant with an extern variable such that the user can select their type of acct.
You are right, I should just try and do it myself. I can do the editing, but my coding skills are not that good yet to actually add stuff. So I will just have to dive into MQL4 coding. Thanks for pointing me in the right direction, I can work with that.
Will share and post it here when I´ve fixed it.
If you reject the truth, you must believe a lie
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
-
- rank: 150+ posts
- Posts: 164
- Joined: Thu Mar 19, 2015 9:45 pm
- Reputation: 77
- Location: PL
- Gender:
Re: DragonMM Mod Request
I don't have access to micro account right now so I can't check if works but try this:
After:
add:
After:
Code: Select all
AmountPerPip = LotSize * TICKVALUE ;
add:
Code: Select all
int lt = 1000000/LOTSIZE;
LotSize = Risk / (myStopLossPips*MODETICKVALUE)/lt;
"I only see my goals, I don't believe in failure 'Cause I know the smallest voices, they can make it major"
- ForcedShadow
- rank: <50 posts
- Posts: 24
- Joined: Sat Jun 25, 2016 11:30 am
- Reputation: 0
- Gender:
Re: DragonMM Mod Request
salezyakuku wrote:I don't have access to micro account right now so I can't check if works but try this:
After:Code: Select all
AmountPerPip = LotSize * TICKVALUE ;
add:Code: Select all
int lt = 1000000/LOTSIZE;
LotSize = Risk / (myStopLossPips*MODETICKVALUE)/lt;
Yep, that worked! It now shows the correct values for a micro a/c.
I´ll attach the MQL file so anyone with a micro a/c can use this one.
Thanks salezyakuku
- Attachments
-
- TRO_DRAGON_MONEY_MGMT-MICRO ACCOUNT.mq4
- (12.48 KiB) Downloaded 316 times
If you reject the truth, you must believe a lie
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15562
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
Re: DragonMM Mod Request
ForcedShadow wrote:salezyakuku wrote:I don't have access to micro account right now so I can't check if works but try this:
After:Code: Select all
AmountPerPip = LotSize * TICKVALUE ;
add:Code: Select all
int lt = 1000000/LOTSIZE;
LotSize = Risk / (myStopLossPips*MODETICKVALUE)/lt;
Yep, that worked! It now shows the correct values for a micro a/c.
I´ll attach the MQL file so anyone with a micro a/c can use this one.
Thanks salezyakuku
Good job. Thanks.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
Re: DragonMM Mod Request
haha! 2016....thanks for the mod.
Re: DragonMM Mod Request
ps does anyone have a link to the Dragon33 writings? I believe I saw it a few years ago but would like to re-read it, thank you in advance!
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.