Disliked{quote} But like an EA, you would still need to have your MT4 terminal running on your PC for it to place the trade or use a VPS, right?Ignored
1
I will code your pivot EAs for no charge 23 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Disliked{quote} But like an EA, you would still need to have your MT4 terminal running on your PC for it to place the trade or use a VPS, right?Ignored
Disliked{quote} Yes sir. I guess I should also say that I don't trade manually per se. I will be there when orders are placed, and I might load a script to do math quickly, check conditions and if good then place the order but I do not manually place orders, so the script works well for my style.Ignored
Disliked{quote} Well, thank you for sharing that information with me.By the way, it would be of benefit to you to add a maximum allowed spread setting to the script. That way, you can protect yourself against the shady practice of brokers who surprise traders with an excessive spread amount at certain times of the day or when volatility is strong. This was a problem I ran into with my EA.
Ignored
Disliked{quote} ...Been missing conversation here lately with all that's going on.Ignored
DislikedHello I have a question dear coders...1) i'm trying to get value of highest and lowest price of one pair (from beginning)but when I'm going to lower time frame it change..maybe because of loading chart problem? any idea to fix it? 2)I should use something like this if(_Symbol=="EURUSD")...it works but in some brokers this is different like "EURUSD-ECN" or ... how can to code that so it work on all brokers and any kind of name? Appreciate your help.Ignored
Disliked{quote} Yes, it's been hard. I wish you well with your trading and hope you stay healthy!Ignored
Disliked{quote} Yes sir. I guess I should also say that I don't trade manually per se. I will be there when orders are placed, and I might load a script to do math quickly, check conditions and if good then place the order but I do not manually place orders, so scripts work well for my style.Ignored
Disliked{quote} Talking about your script, does it have the feature that enables one to place trade few pips either above or below current market price and if it does, will your share it with us. I just need a script or Ea that will enable me to place buy or sell order above or below current market price, without doing individual calculation on each pair manuallyIgnored
Disliked{quote} It places an order by price input. Input the price and if it reaches it then it will trigger a market order. Is this what you're asking? The download is few posts back now, also in other thread last year.Ignored
Disliked{quote} Pardon my off-topic post, is there any chance You could please take a look at my little EA that won't work properly? I just don't get what the problem is... I talked about it here: https://www.forexfactory.com/showthr...9#post12858729 Basically I am trying to close a position when a new cross against my trade direction occurs on a custom indicator {image} Any help is highly appreciated Stay safeIgnored
Disliked...Disliked{quote} Yes the changing timeframes can reload a program. In or before deinit() you can GetLastError() to check the uninit code https://docs.mql4.com/constants/namedconstants/uninit and then have your code not re-initialize itself: if(GetLastError()==3){prevent deinit/init} If you're using the program on the same chart symbol that you need the info, you can replace the symbol name with NULL. Thank You for your respond... actualy I use WHOLE_ARRAY so in any case it should get highest of beginning...why it dosen'tIgnoredIgnored
Disliked{quote} Sure thing buddy, give me some time though, I have some errands to run. {quote}{quote} I'm sorry, I assumed you were using the program on the same chart you needed the info, in that case you would use NULL. So if on a EU chart and you only need EU info then you can: if(_Symbol==NULL){do something} Otherwise you can save your broker's symbol suffix in a string variable and add that to the symbol. Something like: string suffix="-ECN"; if(_Symbol=="GBPUSD"+suffix){do something}Ignored
Disliked{quote} Sure thing buddy, give me some time though, I have some errands to run. But it would help if you can report any errors you see in the experts tab of your terminal...Ignored
Disliked{quote} Really nice of you, thanksThat's the thing, I compile it and it says 0 errors, so I think it works per se correct, just doesn't close any position. If I should explain something more detailed - just let me know. appreciate it, take all the time you need. Kind regards
Ignored
Disliked{quote} It places an order by price input. Input the price and if it reaches it then it will trigger a market order. The download is few posts back now, also in other thread last year.Ignored
Disliked{quote} Thanks, Do you change the magic number when placing multiple trades? And how is your experience so far using those settingsIgnored
Disliked{quote} Try adding print statements anywhere you think there is an logic error, a simple form of debugging. Perhaps the values are different than what you are expecting and that is causing it to not close positions. But I am looking now.Ignored
Disliked{quote} Really nice of you, thanksThat's the thing, I compile it and it says 0 errors, so I think it works per se correct, just doesn't close any position. If I should explain something more detailed - just let me know. appreciate it, take all the time you need. Kind regards
Ignored
Disliked{quote} Okay so the biggest part of the problem is that the iCustom calls are declared globally and the values not updated during run-time. Meaning that they are only given 1 value when they are initialized and it never changes after that. So if the conditions to close the order do not exist when you load the ea then they will almost never trigger. It's like a broken clock is right twice a day kind of thing. Try this and see what happens. I just cleaned it up a bit and moved the iCustom declarations into start. Edit: lol i see you found this out...Ignored