No that attribute is not available on MT4.Quote:
Originally Posted by ;
Printable View
No that attribute is not available on MT4.Quote:
Originally Posted by ;
Another question. . Is it possible to start out chart windows from an script/EA?
For instance the scanners results are EURUSD and CADCHF and now I want the EA/script to start out the following charts in a separate window automatically?!
thanks.
Yes you can, simply add a different user inputs for every single group called maybe nickname or something. Then allow the label show this as it is text rather.Quote:
Originally Posted by ;
Is thier a way to add a label for each pair or something
if you utilize these for a number of the futures a number of the symbles
are not simple to remember is would be nice to see a name like
ticker (FTSE) is Footsee
Quote:
Originally Posted by ;
That's a fail safe check the code conducts. Every currency pair configurations ought to have a legitimate Currency Pair symbol(), a valid timeframe and an RSI period larger than 0.Quote:
Originally Posted by ;
I utilize MarketInfo(CurrencyPair[I],MODE_BID) to attempt to retrieve the BID of this currency pair provided by the consumer input. If it yields something larger than 0, then that means the symbol given is present in the record the broker supports. The 2 values can be contrasted as is.
The script just display info where all 3 configurations of this currency pairs are legitimate. Instead of doing the very same checks over and over again, I have it look at the PairVerified[I] value to see whether it's true. If it's false, do not process this pair.
This is to prevent user input mistakes like a logo typo that will cause non-stop error messages to be thrown.
regards,
Zen
He is is
https://www.forexforum.co.za/attachm...1752025997.mq4Quote:
Originally Posted by ;
sorry but can you inform me what it is with all the PairVerified boolean?Quote:
Originally Posted by ;
Sorry for all the questions
I'm unsure how to explain this. However, I think you do not need to worry about this because you're not drawing a line or histo like most other indiors.Quote:
Originally Posted by ;
Of cos..Quote:
Originally Posted by ;
regards,
Zen
what do you mean with buffer handling? Do I get a buffer overflow once I let the script run into an infinite loop?
Thanks to the RSI Watchlist. Does this update the not pairs?
thanks a lot!
Really I did not offer you anything... the statement that you quoted me was for the thread-starter. Anyway, to address your concerns over but you get implementation when the tick is 'alloed'. . In theory, (so I've yet to attempt this) with a while loop in the start() function of an EA or indior will effectively convert it in tick predied on period established. Of cos buffer handling in indiors will need some work. I believe it ai not hard in any way.Quote:
Originally Posted by ;
I proposed attaching the rsi indiors about the separate charts of these currency pairs in question and have them toss awake is only a quick an easy method of getting the ultimate result that the threadstarter wanted in relation to buy-sell signal. Cos all alerts goes directly to the window that is , and it says what's the currency pair that triggered the alert.
With that said, I would like to point out again that for most of the time established stuffs that I typed, they're all scripts which runs on an infinite loop. As soon as I said I wrote a time-based EA, it's a script which runs indefinitely until the chart window has been closed and it works exactly the same manner as a EA does in terms of sign identifiion and transaction opening except it is not bound by tick alloion but only by it's time interval.
hope that clears things up for you.
regards,
Zen
a very basic time-based watchlist utilizing script is something like this.
Place the blank_window. Tpl from the templates folder, place the RSI_Watchlist. Mq4 from the folder that is SCRIPT.
Open any chart, load the template. Then attach the script to the chart. After you're done with the settings click fine.
regards,
Zen
https://www.forexforum.co.za/attachm...6449844708.tpl
https://www.forexforum.co.za/attachm...6216741746.mq4
https://www.forexforum.co.za/attachments/1518951355.jpg
Yes just... are you willing the share it?Quote:
Originally Posted by ;
Something like this?Quote:
Originally Posted by ;
https://www.forexforum.co.za/attachm...2001925220.jpg
There's merit in time established indiors since there are generally greater than one on a chart, in contrast there is usually only 1 EA. So you would probably need the EA running code each tick. With indior(s) that this is not necessarily the case. Limiting the code implementation of the indior to set time periods does function nicely, but you just get implementation when the tick is 'alloed'. Thank you for the offer btw. Just as for five charts with five rsi's, the only reason why you would have to do that has got to be visual? If you can get the rsi readings in the EA then the sole reason to open charts will be to confirm stuff, like zigzag patterns for instance, or for visual reference. imo. Regards.Quote:
Originally Posted by ;
Sorry but I dont get it... do you have a good example?
And the values recovered through iClose etc arent updated? Because right now I am running a test and it appears like I get the new value every time?!
RefreshRates() upgrades the following.
Ask
Bars
Bid
Close
Digits
High
Low
Open
Point
Time
Volume
if you want to update values recovered from additional pairs, simply make a variable to keep it then update that factor using those iCustom or iClose functions.
regards,
Zen
One other question please. .
Which data is gon nana be upgraded when I use RefreshRates()?) The data from the pair?
How can I update the values from (habit) indiors (values I get with iCustom(...)) and the data from other pairs (values I get together for example iClose(...))
thanks a lot.
Thank you very much Zen_Leow
you helped me a lot
Everything depends on what you need it to do. However, I worked with scripts when I need something time-based. Not sure what's the behaviour is similar to when the concept is applied to EA or indior.Quote:
Originally Posted by ;
If I were you I'd create a SCRIPT comprising an infinite while loop comprising a sleep(1000) [very important unless you wanna see your MT4 customer hang], it'll draw tag objects of their currency pairs in query along with their corresponding RSI value. Then that is applied to a dummy chart that's blank (no bars, no candles, no nothing). It is possible to get a window that is blank by loading the template.
regards,
Zen
https://www.forexforum.co.za/attachm...1238368767.tpl
While maybe not as elegant a solution as the time established method, many multi pair indiors (Steve Hopwood's Basket Trading EA comes to mind) are connected to the most volatile pair (gbp/jpy on M1) for this very reason.Quote:
Originally Posted by ;
In my testing the indior scanning multiple pairs provides near exactly the very same effects as what you propose (multiple charts).
Again not as elegant or as exact as what you suggest but close enough to accurate for many.
Does it make a difference if I use a indior or timebased EA?
By the way, what if I use? indior or EA?
thanks a lot.
Here we go again... I've had a challenging time explaining this to a differentforexforum.co.zamember a while back but I am too lazy to dig up the thread so I'll summarize below and beg everyone concerned will understand too.Quote:
Originally Posted by ;
Yes I know we could get data from any chart and interval BUT... indiors and EAs are typically tick-based. Significance your indior won't go looking at charts in the event the chart that it's attached to doesn't receive a tick.
Picture that you attach the indior on a AUDUSD chart. And it's supposed to watch 10 currency pairs too, let us assume GPBJPY is one of these. GPBJPY has moved 15 pips while AUDUSD had been still stagnant. Your indior won't refresh with any new info despite the other currency pairs have moved. The indior is only going to refresh it has lines, histo, labels, etc.. . If and ONLY if AUDUSD get a tick.
That's the reason I said such an indior isn't very practical or it won't work how many men and women wish it would and you are better off placing the fundamental RSI indior on all 10 currency pairs' chart and have them awake as and if those pairs meet standards, along with your alert window will tell you which pair is it.
Perhaps the only workaround is to alter a tick-based indior into a time-based script. Just add an infinite while loop which ends using a sleep(1000) into the beginning() function. That way it will do anything it needs to perform (refreshing) following every 1 second interval. I've done. You'd like to explore making time-based indiors.
I hope I've explained this obvious. If you have further doubts, then amazes me I don't soda by anymore.
regards,
Zen
Its not dependent on the chart, I believe that you can grab any information for any pair at the exact same time, and utilize it in one indior. Regards.Quote:
Originally Posted by ;
Then you've many occasions, as many decisions to make.Quote:
Originally Posted by ;
A watchlist will be fine. Lets say we monitor 10 pairs and we forget what we shouldnt and overlook the setup that is great. The watchlist would help to stay on track, eliminating the need of paper notes lol
That would be great. thanks a lot
I had one built for a system I constructed. Was a work of art , system was not but observe list. Let me see if I can loe it and dig into my files. Then you'll have the ability to see the coding required to work and change it how ever you would like. Might not be tonight I'm watching charts but I shall Search for this
But I need to program a watchlist... do I need to do it in shape of an EA or Indior?
I have a template (comprising an EA or indior I know?!) Doing what I want. But I dont have the code so I cannot change it...
thanks to your help. .
Such an indior is not practical as far as standard indiors go cos it's code running is dependent on the chart that it's attached to. You are better off opening the 5 currency pairs and attach a rsi alert indior of some sort on all them.
regards,
Zen
Hey people,
I want some help. Has anyone of you guys ever programmed a ?
For Example a scanner which monitors 5 currency pairs and provides a signal when the RSI is above 70?
thanks a lot.
bye,
thomas