On this page?
for 5 or 4 digit.
It is the settings for buy script for example:
Order_Type = 0; // 0- Current Price; 1 - BUYSTOP; 2 - BUYLIMIT
Lots = 1;
Price = 0;
Distance = 0; // Distance from current price in pips for pending orders
TakeProfit = 0; // TakeProfit in pips
StopLoss = 0; // StopLoss in pips
Slippage = 3;
Comments = "BUY";
Magic = 0;
PointRatio = 10;
If 4 digit broker so change PointRatio to 1.
Do you know what I am doing?
I am openning script in MetaEditor and changing the settings fir ... for example - buy GBPUSD with take profit 25 and stop loss 50. So, I am modifying the settings and use magic number ... for example 9 (Magic = 9). After that - I click on 'Save as" and save this script with this settings and with new name (something as ... "buy_gbpchf").
As a results - you can have scripts to buy gbpchf, to plae pending order for this pair and so on.
Same with other pairs.
About hot keys so I am not using hot keys. But you can look on this thread:
F9 call the "New Order" window
And this thread too
Price change indicator
Hi Coders & traders,
I´m looking for an indicator (line indi in seperate window) that messures the diffence in pips between the current price and the (closing-) price at "X" bars back in time. The "X" must be a value of your on choice, for ex. 15, 30 or 60 min. I find the 60 min on a 1min chart most effective, but with a proper indi, it´s easier to evaluate different timesettings and pairs.
Note! It´s not a question of a MA, it´s supposed to compare with a certain price "X" bars back!
I have surched all over the internet, but I can´t find what I´m looking for.
Anybody who could point me in the right direction, or maybe even code it? It´s probably very easy to code. I have tried, but I didn´t have the skills to succeed.
Thanks in advance,
Momentum indicator ...
By definition that is a momentum. Metatrader built in momentum works with a bit different formula, so here is a momentum that works as you described it. It also has an option to convert the momentum to pips and is a multi time frame as well (so you should not have any problems finding out the momentum of other time frames - the "X" bars back in time, if that is what you had in mind)
Your the MAN! Thank you so very, very much!
It seems to be spot on! I would never have found it by myself.
Now I´ve got work to do.......
Ok, i understand the 5/4 digits part now.
2 more questions :
The above distance is how many pips away from current price the buy limit/buy stop will be place for this order when this script runs?
And how do i run this script, simply double click, then it will place the order automatically like an ea? And for each order, i need to run it once with the settings in it?
Distance depends on the broker.
How to run?
Attach to the chart. Script is working on the moment of the attacking to the chart; EA is working all the time and stop working when you will de-attach it. So, it is the difference between the script and EA.
You can experiment on demo account using those scripts for example:
Buy Sell Indicator with trail SL
Hello all please look at the attached image and advice whether i can find an indicator like this. If yes please share the mq4 file .
MinMax Price Charts
is there an indicator that draw the minmax price chart like in oanda? maybe it will draw as an overlay and the user can just hide the candles/bars.
Not sure if this is what you want (gray is the close, and the other two are high and low):
On the other hand, if you are looking for minimal and maximal prices for certain periods, you might look at this thread : https://www.mql5.com/en/forum/174154
many thanks, but i dun think this is the same,
from Oanda's website:
The Min/Max chart plots the minimum and maximum prices for the interval chosen. The upper boundary represents the maximum ask price, while the lower boundary represents the minimum bid price.
The Min/Max chart is different from the Closing Price chart because minimum and maximum prices may not be the opening and closing prices for that interval.