simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
I’m afraid that this won’t be enough. The circumstances kapybara & forexdj reported will prevent the EA from opening trades. The error occured in functions BuyStop and SellStop. So this particular check has to be made before an entry, but during trailing as well.
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Hi kapybara,
Thanks for reporting! According to your output, the error should NOT occur on your GP account, where
Stop level in points ( MODE_STOPLEVEL ) = 0. On MaxFx the case is clear withStop level in points ( MODE_STOPLEVEL ) = 10As a workaround, please try setting your parameter StopOrdersBuffer to a value greater than the account…[Read more]
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
@VlanFx: maybe it would be a good idea to cut the function from my above posted script and integrate it in the EA. Calling the function once during OnInit() might support debugging.
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Thanks for reporting. Obviously the problem occurs when functions BuyStop() and SellStop() are called for an entry:
double stopLevel = MarketInfo(sym, MODE_STOPLEVEL) * point;[Read more]
if (price - ask <= stopLevel) {
Print(__FUNCTION__ + " Price " + price2String(price) + " too close to current price " + price2String(ask) + " Min…simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Thanks for reporting. Obviously the problem occurs when functions BuyStop() and SellStop() are called for an entry:
double stopLevel = MarketInfo(sym, MODE_STOPLEVEL) * point;[Read more]
if (price - ask <= stopLevel) {
Print(__FUNCTION__ + " Price " + price2String(price) + " too close to current price " + price2String(ask) + " Min…simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Thanks for reporting. Obviously the problem occurs when functions BuyStop() and SellStop() are called for an entry:
double stopLevel = MarketInfo(sym, MODE_STOPLEVEL) * point;[Read more]
if (price - ask <= stopLevel) {
Print(__FUNCTION__ + " Price " + price2String(price) + " too close to current price " + price2String(ask) + "…simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
I received a PM about our EA v.1.4 throwing out a message like:
2016.02.09 23:57:07 2016.01.04 11:59 Penguin_v_1_4 EURUSD,H4: SellStop Price 1.09038 too close to current price 1.09068 Min distance = 0.00300
Hopefully some more detail will follow, so we can start debugging. I have an idea where to look, but more detail would be helpful!
If…[Read more]
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Hey guys:
There were private questions relating our Penguin EA v. 1.4. I just forgot to mention that: you have to permit DLL calls when launching the EA, if you haven’t activated DLL use permanently.
The event calendar functions require that. If you do not permit DLL, the EA cannot run.
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
I think it’s time to update my formerly posted ‘GG53 compilation’ pdf to provide an overview of the most significant posts in both ‘really simple’ threads.
May also serve as sort of specification sheet for fellow coders.
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
I must admit that there are trading terminals that have programming interfaces which are easier to handle for coding newbies than MT4.
But in the end, some coding is supposed to make trading easier. If you want other tools than the built-in RSI, MA, etc. you or somebody else has to code those tools. That’s a matter of fact. And I disagree that…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Sorry G., did not have time for that today. I was fully occupied working on the basics of CIX 4. It’s not yet mature enough for a public test, just want to post a pic for review to ensure my direction is ok from your point of view. Local testing and debugging will certainly take one more day. It’s not yet completely stable.
You wrote: Here we…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Yes, mine is an automatic one, too, but with the opportunity to interact manually if preferred – just like the EA is supposed to be.
Thanks for your entry suggestions, yet this is not the point for me. We’ve had several discussions about USDx anchor and how to reflect it in CS values. This is the specific part where our discussion got stuck in…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
I own a car with a six-step gearbox. I’ve never had the idea to use only one of them, let’s say third or fifth gear. When I drive my car I take the freedom to choose between all six gears with regard to the current situation, reflecting my experience as a seasoned driver.
It’s the same way I’m using the input parameters of my indicators. It just…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
I own a car with a six-step gearbox. I’ve never had the idea to use only one of them, let’s say third or fifth gear. When I drive my car I take the freedom to choose between all six gears with regard to the current situation, reflecting my experience as a seasoned driver.
It’s the same way I’m using the input parameters of my indicators. It just…[Read more]
simplex replied to the topic Rebuild a Indicator in the forum Indicator discussion 10 years, 4 months ago
The most interesting part I found in that code is this comment:
// EA2B2676C28C0DB26D39331A336C6B92
Good luck to everybody who dares to dig in deeper.
I’m out.
Best,
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Hi Balrog!
Welcome to the Penguin Quality Assurance Department!
Well sorry, I think I should take more time to get rid of outdated code, too many different sub-projects on my disk lately. I just packed an outdated mq4 file in the zip. I deleted the old zip and uploaded a correct one – please download here.
Thanks for pointing out the error!
s.
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Correct, there was a bug. Please find an updated version over here.
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
@gg53 pointed out that my MTF Clear Method Candle Indicator behaves strange on timeframe and / or symbol change – thanks for that!
Indeed there was a bug in the timeframe management section ( OnInit() ).
Please find a bugfixed version attached.
Note to the coders: there was no change in the mqh library.
s.
EDIT: replaced the indicator file…[Read more]
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
@gg53 pointed out that my MTF Clear Method Candle Indicator behaves strange on timeframe and / or symbol change – thanks for that!
Indeed there was a bug in the timeframe management section ( OnInit() ).
Please find a bugfixed version attached.
Note to the coders: there was no change in the mqh library.
s.
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Thanks, I’ll have a look inside.
s.
- Load More