Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
You can ask cja to make it smaller on this thread Signal_Bars_v7
Why cja is posting ex4 codes only with banner - please read those 2 threads: eBay Interesting ????
I see..
Even the Dolly and DIN where I, cja, minime, and others have worked together, have been ripped and sell by those thieves on the net.
I was wondering what code and where to add it, if I want any indicator to sound, email, alert until I shut it off. I'm away from my computer at times and use text messages and sound to alert me whether awake or asleep. One sound or text message is not always enough to get my attention.
I've been trying to confirm that the iCustom uses the values at the close of the bar or does it calculate it after every tick? It is not totally clear in the documentation. It seems that some functions like iMa allow you to specify at which time in the bar that you want the value to be taken.
I have the following iCustom and would like to know if it is the value of StochRSICurr at the end of the daily bar or not?
As always, bar 0 is temporally incomplete for both EAs and indicators, and its high, low, close and volume are almost certainly different from how they end up when that bar completes and becomes bar 1. More exactly, the value of StochRSICurr at the end of the daily bar is only known at the first tick of the next daily bar (and later). I think you do yourself a disservice trying to use bar 0 values, since these, with few exceptions, only reflect the partial state of the incomplete bar.
As far as I know, the indicator gets invoked at the time of the first iCustom call with the particular parameter value combination, during each EA start() function invocation. Successive iCustom calls during the one EA start function call, to the same indicator, with the same parameter value configuration, reuses whatever the first call produced. The next EA start() function, again calling iCustom, will again invoke the indicator, in the context of the tick that caused the start function to be invoked.
Thus, in the eyes of the indicator, it gets invoked once for each tick that the EA lets it get invoked for. By telling an MA to use open price or high price etc only changes which bar values it looks at, while the manner of invocation will remain the same: it is invoked at every tick (that the EA lets it).
Is there an EA [or is there a way] that could:
-work in bars [not in ticks];
-follow two indicators, one of which has 1 line, the other has 2 lines;
-make a certain order when the first indicator crosses its zero level, automatically closing a corresponding order [if there is any];
-make a certain order when the second indicator's lines cross each other, again automatically closing a corresponding order [if there is any].
Simply b/c I only have a few posts doesn't mean that I'm looking for some free advice or looking for benefiting from fill-in-the-blank-here. I'm not asking anybody to code anything. What I am asking for is help [just like Joe Bauers in Idiocracy]. Just point me in the right direction. I already have the code that I've written a couple of days ago, hich isn't working [of course!]
Now, I'm sure that there will be problems down the line b/c I don't have any practical C/C++ knowledge. However, if I have time, I will most certainly post updates here.
One more thing: I got a little help from phy in MQL forums: he says that "code within start() executes every tick" and "code within init() is only executed one time or once per intitialization/start/restart of the EA". Am I getting this correctly: a tick is any change of price. A bar has many ticks. A M1 bar may have 60 seconds [or so] worth of ticks and a M5 bar may have 60 seconds * 5 instances/minutes worth of ticks. I do not want the code to pay attention to each and every tick there is; I just want the bar to make the difference. Where should I put the Time[0] to replace the tick movement following w/ that of bar's?
Nobody want to help me. I post one more time my problem and please help me.
I just want understand why the result is not the with the two ways of coding the same indicator (see the code and picture).
Just wanted to say thanks Ralph Ronnquist. I now have that part functioning properly.
I do have another question for anybody who can help. When I try to use Strategy Tester with my EA, it is extremely slow. I know it works as i do get some results but I need to leave it on overnight to get 3 month's of results.
My EA is based on daily trend using Stochastic RSI crossing (testing) and then only price action. What could be the main reasons of it being so slow. Is it in the programming or is it because I'm calling an outside indicator or is it that Stochastic RSI swallows a lot of power.
I run many other EA's and they are all a lot faster than mine. My system is plenty powerful with 3GB of Ram and Intel Centrino Duo processor.