- Search Crypto Craft
- pah replied Dec 29, 2024
Have a look at the errors it prints when things fail which will show you what's going wrong. I think you will end up with some fractional lot sizes that will cause OrderClose() errors (they would need to be adjusted and rounded see MODE_MINLOT & ...
Move Stop Loss To Break Even EA
- pah replied Dec 28, 2024
You might find this code of help: url See test script code. Regards Paul.
I will code your EAs and Indicators for no charge
- pah replied Dec 19, 2024
It's difficult to say without seeing the code. It sounds like you need to adjust your code to delete/hide or move the line out of visible range when it's no longer relevant. When you deactivate/reactivate the indi, it is probably deleting any ...
I will code your EAs and Indicators for no charge
- pah replied Dec 15, 2024
Don't want to go down the rabbit hole of copyright but the warnings are showing that when the OrderSelect() function is called (which can return true or false according to success or not) the return value is not being checked for success or failure. ...
Break Even Line for Multiple Order (Indicator)
- pah replied Jun 9, 2023
The trade's entry doesn't really matter. Confused now...
FX Math: Expected Return based on Risk:Reward ratios
- pah replied Jun 9, 2023
I'd say from my own experience that such a strategy would depend significantly on the time of day and where the instrument is currently situated(within it's daily/weekly range) and where it is in relation to other important levels. Also, you could ...
FX Math: Expected Return based on Risk:Reward ratios
- pah replied Jun 9, 2023
Hi, It's not really clear what question you're asking, maybe expand a little on what it is you're doing, which instruments you've back-tested on, etc... Were they trending, ranging, how were the trades placed and at what time and so on. What you've ...
FX Math: Expected Return based on Risk:Reward ratios
- pah replied Jun 6, 2023
Make sure you have the .ex4 files in the correct folder. Best way to make sure is click File menu and choose "open data folder ". Expand the MQL folder and you should see an Indicators folder, open that and this should be where your files are. If ...
Trying to get ex4 files to work
- pah replied May 9, 2023
Hi, As you have attached code, it makes it look like you can code to some extent. I've compiled the modified code I posted earlier which you can try. You will have to modify the BUYs script yourself based on the changes you find in this one. Or... ...
Need help with this Script
- pah replied May 9, 2023
Hi, The code you attached above is still trying to send the order with TP & SL on the OrderSend() line. Have you tried the modified code as a new script or adding the changes to the existing scripts to see what happens? Are there any error messages ...
Need help with this Script
- pah replied May 8, 2023
Hi, What I think JoeeF meant was to add code to apply the SL & TP. Try this modified code which does this as a second step. There is no error checking in the code as it is but this isn't a major issue for a script which you will be applying and ...
Need help with this Script
- pah replied May 5, 2023
Thank you. So I presume you will be looking for price action signs on the lower time frames in determining if a level is broken or held? Regards, Paul.
Gold
- pah replied May 5, 2023
Thanks for your posts, you make excellent commentary with very accurate prices, your Fibonacci levels are pretty accurate on gold. Would you share your criteria for determining when a level has been broken or has held. I for one would be very ...
Gold
- pah replied Apr 28, 2023
Hi, Not sure whether you can use EventSetTimer in an indicator, maybe only for EA's. You'll have to look that up. Is it not doing it's processing in the OnCalculate() event? Also, your error suggests you are using the millisecond timer, not the ...
Speedometer (Points/Sec)
- pah replied Apr 18, 2023
Just for info. I ran an EA on Bitcoin which seems to work with the correct values displayed. I notice on your tester screenshot that trades are opened and immediately closed at s/l or t/p. This suggests that your maybe specifying the take profit or ...
BTCUSD spread in mt4 strategy tester not working
- pah replied Apr 18, 2023
Sorry if I wasn't clear. The attachment is a script which you store in the scripts folder and drop onto any chart. It will print out selected values for all symbols in your market watch window to the experts tab of the terminal. In testing, with ...
BTCUSD spread in mt4 strategy tester not working
- pah replied Apr 18, 2023
Hi, Have you had a look in the tester journal at the start of a test run. This should show the spread it's working with. If you find this is zero even when you have specified a larger spread it would suggest there is some internal limit to the ...
BTCUSD spread in mt4 strategy tester not working
- pah replied Apr 6, 2023
Hi Matt, To help with the "can't set event timer" issue I use the following ( taken from OnInit() event ). Since adding this I haven't seen the error, usually occurring on VPN sessions as you mentioned earlier. while ( ! EventSetTimer(10) ) { if ( ...
Speedometer (Points/Sec)
- pah replied Oct 14, 2021
You make the magic number an input parameter to the EA so that you can start multiple instances of the same EA but each one can have it's own unique magic number and deal with it's own trades. Regards Paul
Do I need a separate BB Mean Reversal EA for each chart?
- pah replied Oct 14, 2021
I wouldn't rely on it. Depending on changes involved the 'update' may do more than just download a new .exe FYI, Mine have upgraded to version 1350 this morning which is out of step with the above post from emmzett... Regards, Paul.
MetaQuotes "This is the last MT4 upgrade"