- Search Crypto Craft
- pah replied Oct 7, 2021
You need to read the documentation more carefully. The call to the GlobalVariableSet() function takes two parameters, first is a STRING which is the NAME of the variable, second is a double holding the VALUE. ...
Trying to code for setting beginning daily balance
- pah replied Sep 30, 2021
I think you should read url You are confusing the issue in trying to store your account balance in a variable declared in the EA as no other instances of the EA (e.g. the other 19 on the other charts) can access such variables. If you store the ...
Trying to code for setting beginning daily balance
- pah replied Sep 15, 2021
You might fix some issues by running the program in compatibility mode (Probably with W7), see below. url Regards Paul.
MT4 & Windows 10 compatibility
- pah replied Sep 10, 2021
It is creating 256 objects over the last (default) 15 bars. When you change the chart timeframe to H4 or Daily there are too many objects in too small a space to make it useable. You would have to reduce the value of CountPeriods or make some lines ...
I will code your EAs and Indicators for no charge
- pah replied Sep 1, 2021
The spread is simply the difference in points between Bid and Ask prices for any given instrument. The values in different a/c currencies are also the same if you convert AUD to GBP ( or GBP to AUD) before comparing them. An exception may be if they ...
Do spreads depend on the account base currency?
- pah replied Aug 31, 2021
Can you be more specific on the lot sizes for 3 digit pairs, how is it incorrect? It is not always easy to look at someone's code and determine the issue without much info. Regards, Paul.
I will code your EAs and Indicators for no charge
- pah replied Aug 27, 2021
Try this file Regards, Paul.
I will code your EAs and Indicators for no charge
- pah replied Aug 27, 2021
Please read below again and compare with your code, I have already shown you a fix for your issue. for(int i=1;i<Bars;i++) Start at 1 not zero, bar zero is current bar... Regards Paul.
I will code your EAs and Indicators for no charge
- pah replied Aug 26, 2021
Just a guess but it looks like you are constantly checking the current bar in your loop which will fulfill the checked conditions as it grows during the day. Would you not want to only check completed bars? for(int i=1;i<Bars;i++) Regards, Paul.
I will code your EAs and Indicators for no charge
- pah replied Aug 26, 2021
The break operator terminates the execution of the nearest nested outward switch, while, do-while or for operator. if(aa && bb && cc) { redSf=i; break; } Also, just for clarity, I would change aa, bb, cc to be of type bool type rather than double. ...
How to get the Shift of 1st Group in a Loop
- pah replied Jul 18, 2021
As you say, the mq4 files are readable source code, the ex4 files are the compiled executable from the source. You can place a mq4 file in your MT4 directory and your MT4 will compile it on startup. You download a file (source or executable) to ...
Questions about mq4 and ex4 files
- pah replied Jun 30, 2021
I don't know the site or the tool but looking at your rules, it appears the shift parameter being zero would probably refer to the current bar (the bar still forming). I'd say you want to refer to the previous bar (shift 1) to work with values of ...
Trying to Build an EA
- pah replied Jun 29, 2021
Hi Peter, Thanks for the info. You have got it spot on... Regards, Paul.
Ugh, I can't do math
- pah replied Jun 29, 2021
The issue I've found with currency strength and related approaches is judging the duration of the strength/weakness and trading that either directly or in conjunction with some other method. A currency could be strong/weak for a few minutes/hours, ...
Ugh, I can't do math
- pah replied Jun 28, 2021
Hi nd, Would it not be easier to just use the spreadsheet? I trust you know that it's DDE aware and will update itself directly from MT4. Regards, Paul.
Ugh, I can't do math
- pah replied Jun 27, 2021
Thanks Retep, That'll give you percentage change between a pair which, as you say, can then be compared between currencies(strengths or whatever you're looking at). Last thing I was looking at that related to this it was interesting to note that all ...
Ugh, I can't do math
- pah replied Jun 25, 2021
I'd say you've over thunk it lol. If you look at a USDJPY chart that's moved 173 pips and your mate is looking at a JPYUSD chart, his will also have moved 173 pips ( I'd hope ). So in your case I'd just put the inverted pip value [edit: should have ...
Ugh, I can't do math
- pah replied Jun 25, 2021
e.g. 1 USD = 110.749001 JPY and 1 JPY = 0.009029 USD (or 1 / 110.749001 = 0.009029 ) What's gone wrong? Don't forget by swapping round you're now quoting in USD, not JPY Regards, Paul
Ugh, I can't do math
- pah replied Jun 24, 2021
I think the issue of freezing/hanging the terminal is related to the recent history being available or not. Applying dashboard to an instance that is up to date with history bars for all pairs & timeframes is no problem, all works fine. However, if ...
"Daylight" Dashboard
- pah replied Jun 24, 2021
I'll have a look later. Upon clicking OK to the parameter selections it shows the hourglass and terminal is immediately unresponsive. Not sure if I'll be able to get at any details printed in the output... Thanks, Paul.
"Daylight" Dashboard