Miscellaneous Dumb Questions – All EAs

Ask your basic questions confidently here. Flaming is not allowed. Sympathetic help is the order of the day.
Post Reply
garyfritz

Re: Miscellaneous Dumb Questions – All EAs

Post by garyfritz »

OK, understand this is 4000 lines of code and I have no idea what 99.8% of it is doing. :lol:

But... it looks to me like it doesn't pay attention to RecoveryTrailingStopAt unless UseRecoveryTrailingStop is set. So they don't interfere with each other -- UseRecoveryTrailingStop *enables* RecoveryTrailingStopAt. If UseRecoveryTrailingStop = true, then you should have a valid value in RecoveryTrailingStopAt.

And BTW set UseRecoveryTrailingStop to true or false, not 1 or 0.
User avatar
Mike
Trader
Posts: 272
Joined: Sun Dec 11, 2011 12:30 pm
Location: Italy

Re: Miscellaneous Dumb Questions – All EAs

Post by Mike »

garyfritz wrote:...it looks to me like it doesn't pay attention to RecoveryTrailingStopAt unless UseRecoveryTrailingStop is set. So they don't interfere with each other -- UseRecoveryTrailingStop *enables* RecoveryTrailingStopAt. If UseRecoveryTrailingStop = true, then you should have a valid value in RecoveryTrailingStopAt.
And BTW set UseRecoveryTrailingStop to true or false, not 1 or 0.
Great help
BTW: I modify the set file, hence 1 or 0
Image
Image
VirtualFM
Trader
Posts: 84
Joined: Sat Apr 28, 2012 3:45 am

Re: Miscellaneous Dumb Questions – All EAs

Post by VirtualFM »

Hello Steve!

I am following your work for some time but I never spoke to you because... because... well, because I read what you usually put in the bottom of your posts regarding newbies and stupid questions, so I didn't want to be the trigger for you to loose any time saying I was an idiot! ;)

So first things first, and since I am finally posting: Great work, thank you very much for your time and generosity.

Now for my problem...

It's about MPTM and how it manages specified pairs. I had this problem before but I disregarded it and just used the "Manage all trades" option instead. But I am dealing with some more "dangerous" trades and the general parameters I have in MPTM (that are set for all trades) don't work so well with them, so I would like to use certain parameters with selected pairs in order to manage the general forex pairs and then use another MPTM to manage those other ones.

I am on "Forex.com" and it allows to trade CFDs and some goods. I didn't try the goods yet, but MPTM is not working for selected "pairs" (they are not pairs, just calling them that to be easier) like "AUS200" or "US_OIL". I add those strings into the "PairsToManage" field, so I add "AUS200" and "US_OIL". But when trading, it's obvious MPTM is not catching them because it doesn't put any BE or SL (it does so if I use "Manage all trades".

I guess it has something to do with naming of the CFDs, but my knowledge of MQL4 is certainly not enough to solve the problem. I put some "Alerts" printing the string names and stuff like that to try to figure out where the problem would be, but just got stuck.

I don't know about other brokers, but Forex.com adds "FXF" in front of every forex pair, so AUDUSD becomes AUDUSDFXF. It doesn't add "FXF" to those CFDs or to the goods, so the name remains US_OIL, AUS200, CORN, SOYBEAN, etc Maybe it has something to do with that?

Do you think you can fix MPTM that so it can work with those? Or point me to the portion of code than prevents it from working? OR... just tell me I am an idiot and this is some stupid user error?

Thank you so much!
FM
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Miscellaneous Dumb Questions – All EAs

Post by SteveHopwood »

VirtualFM wrote:Do you think you can fix MPTM that so it can work with those? Or point me to the portion of code than prevents it from working? OR... just tell me I am an idiot and this is some stupid user error?

Thank you so much!
FM
Hehe. Don't be so damn silly. How the hell do you imagine I am going to achieve all this? :lol: Or might want to?

Which bit of:
"Disclaimer
I coded a lot of functions into the ea in response to requests from users to do so. I have not used many of them and have forgotten how they work or what they do. Do not bother asking me questions such as, "What do I do to......", or, "How do I....." The chances are that I do not know the answer. In any case, I shall ignore the question. Read the user guide and experiment on demo to find a solution. Feel free to ask questions of other traders here. Someone might know the answer and be prepared to supply an answer; just don't expect one from me.
"

from post 1 in the mptm thread escapes your understanding?

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Miscellaneous Dumb Questions – All EAs

Post by fx800 »

VirtualFM wrote:Hello Steve!

I am following your work for some time but I never spoke to you because... because... well, because I read what you usually put in the bottom of your posts regarding newbies and stupid questions, so I didn't want to be the trigger for you to loose any time saying I was an idiot! ;)

So first things first, and since I am finally posting: Great work, thank you very much for your time and generosity.

Now for my problem...

It's about MPTM and how it manages specified pairs. I had this problem before but I disregarded it and just used the "Manage all trades" option instead. But I am dealing with some more "dangerous" trades and the general parameters I have in MPTM (that are set for all trades) don't work so well with them, so I would like to use certain parameters with selected pairs in order to manage the general forex pairs and then use another MPTM to manage those other ones.

I am on "Forex.com" and it allows to trade CFDs and some goods. I didn't try the goods yet, but MPTM is not working for selected "pairs" (they are not pairs, just calling them that to be easier) like "AUS200" or "US_OIL". I add those strings into the "PairsToManage" field, so I add "AUS200" and "US_OIL". But when trading, it's obvious MPTM is not catching them because it doesn't put any BE or SL (it does so if I use "Manage all trades".

I guess it has something to do with naming of the CFDs, but my knowledge of MQL4 is certainly not enough to solve the problem. I put some "Alerts" printing the string names and stuff like that to try to figure out where the problem would be, but just got stuck.

I don't know about other criminals, but Forex.com adds "FXF" in front of every forex pair, so AUDUSD becomes AUDUSDFXF. It doesn't add "FXF" to those CFDs or to the goods, so the name remains US_OIL, AUS200, CORN, SOYBEAN, etc Maybe it has something to do with that?

Do you think you can fix MPTM that so it can work with those? Or point me to the portion of code than prevents it from working? OR... just tell me I am an idiot and this is some stupid user error?

Thank you so much!
FM

One solution may be to use MANAGE BY MAGIC NUMBER. Use a different magic number for AUS200, SOYBEAN, etc and use another MPTM ea to manage these. Or use MANAGE BY TRADE COMMENT.
andrepixel
Posts: 2
Joined: Thu May 10, 2012 1:00 am

Re: Miscellaneous Dumb Questions – All EAs

Post by andrepixel »

Hallo Steve..
Sorry, but i can not find the explanation about "usedinamicpipspforit" in (Global order closure settings in MPTM)what it is for? and if i set it to true pipspertrade=5 will be executed.
does it will moving my stop loss every five pips i earned?
Thanks..
jjasper7
Trader
Posts: 87
Joined: Mon Mar 19, 2012 11:44 pm
Location: Mesa,AZ (near Phoenix)

Re: Miscellaneous Dumb Questions – All EAs

Post by jjasper7 »

i have a version of an ea running and am inserting alerts to locate problems, but it does not show any alerts anymore. how did i turn off alerts, and how do i get them running again? i inserted :
Alert("start program"); immediately after init and start, but they do not work on this ea, although the comment lines update and display properly, and another ea still posts alerts. i have tried to reinitialize both the ea and the computer, change to another ea and do not know why it does not seem to run. anybody with an idea?
it also looks like the program does not reload every time i compile it!
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Miscellaneous Dumb Questions – All EAs

Post by SteveHopwood »

Khalaad wrote:Out of the the three EAs on my VPS, only Pitbull is functional. :)

But I still have not been able to figure out what the '5' in

'extern double CashTakeProfit=5;' stands for :oops:

Pips or Base Currency?

Thank you.

Khalid
It will be Base Currency, Khalid.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
degil
Trader
Posts: 10
Joined: Wed May 09, 2012 2:21 pm

Re: Miscellaneous Dumb Questions – All EAs

Post by degil »

How do I use a "___.set" file??? I see other people posting theirs or requesting someone elses file, but have not figured out where to use it or open it....Any help appreciated....Thanks, Don
User avatar
Jemook
Trader
Posts: 1085
Joined: Thu May 10, 2012 10:19 am
Location: Bondi, Sydney, Australia

Re: Miscellaneous Dumb Questions – All EAs

Post by Jemook »

degil wrote:How do I use a "___.set" file??? I see other people posting theirs or requesting someone elses file, but have not figured out where to use it or open it....Any help appreciated....Thanks, Don
When you run an EA you can choose to load a .set file which is a saved file of someones settings for the EA. Once you load up the .set file your settings for the EA will change to the saved settings stored in the .set file.
Please note I am no longer affiliated with Global Prime. I've moved on to my next adventure with Afterprime.

Catch me here: https://www.afterprime.com
Post Reply

Return to “EA's for Dummies.”