MQL4 and MetaTrader 4 - page 91

Hello, i have this code .. does somebody know how to reach more historic bars? void OnTick() { //--- ChartNavigate(0, CHART_END, 0); Print(High[2000]); } this gives me error but with usage of High[1000] it works. I tried that ChartNavigate funciton but it does not help. Thanks
hey am not very experienced and am just wondering how we could know an ex4 produces fake backtest does the below picture mean this is a history readerr
  Larry Williams Greatest Indicators  (81   1 2 3 4 5 ... 8 9)
Hello, Attached is the indicator that Unca requested for Larry Williams Greatest Swing Value (GSV) Indicator: "I would like to ask somebody to create indicator of Larry Williams. It's not actually indicator. Larry Williams introduces this as a concept in his book Long-Term Seecrets To Short-Term...
Hello friends, As you can see in the picture, I collected 600 points for Buy position in EURUSD currency pair, but it gives me 5.43 rather than 6$. My code for exiting is: if ( OrderSelect (( int )BuyOrder[x],SELECT_BY_TICKET)== true ) if (OrderProfit()>=OrderLots()*TakeProfit) if
I need the ATR data of each symbol that they put in a symbol string, for example ("EURUSD,GBPUSD,USDCHF"), or I did it this way but it doesn't bring the data correctly and I can't do the iCustom in OnInit either because how does it save the data of the for?? please help The code: void SendAlert(){
Hi This is a simple fractal indicator.  MAIN QUESTION : Why getting  "array out of range" error only when using "#property strict" ? //+------------------------------------------------------------------+//|                                                     Fractals.mq4...
[Deleted]
I am building an EA that involves 2 different scripts can someone help me out with a way to make reference to them and collect boolean data
  Range price  (2)
I want make range price to buy and sell for pending order and I will only add one viger for example 1.00000 and if range price > 1.00000 and <1.00025 this buy and if range price addition will always add 25 points examle if price for EURUSD AFTER adding 25 points > 1.00025 and < 1.00050 and so on
Hello, I can no longer see the expert advisor symbols on MT4. Instead of symbols I see only squares. Can someone help me
  Orders Report EA  (7)
hello guys hope you're doing good , i'm new to mql4 , i'm trying to do a simple expert expert advisor that counts the number of trades each expert advisor did historically using the matching number, int OnInit () { return ( INIT_SUCCEEDED ); } void OnTick () { int i; int exe; for
I'm looking for a volume profile indicator for MT4. Any help is appreciated. Thanks Peter
I am running a scalping strategy and with all the chart trade arrows, my chart is unreadable. Is there a way to remove them
I program an EA on a certain broker's MT4 and then I copy it over to another broker for live trading. If the EA already exists on the other broker I overwrite the exisiting .exe with the new version. (Parameters stay the same) The older version of the EA on this second broker is already attached and
How do you loop all symbols? for example if you wanted to make a list of all available symbols
would it be ok to compare these double values this way? because I normalized it? I want to prevent calling OrderModify after if the stoploss is the same as the existing OrderStopLoss() so that I don't do unnecessary calls to modify on the server. const double normalizedPrice = NormalizeDouble
hello guys i created a function to print on chart specific text , but the color is default even if i set it differently. void Info( string NAME , double CORNER , int Y , int X , string TEXT , int FONTSIZE , string Font , color FONTCOLOR ){ ObjectCreate (NAME, OBJ_LABEL , 0 , 0 , 0 );
When i click on any indicator in indicators list metaeditor is opening how do ifix this any help
Hello, I have an expert and I would like it to make a WebRequest to verify the current version number of the expert, and alert the user if there is a newer version. I am wondering if there is a way to add the URL to the Allow WebRequest from inside the expert. I assume this may be a security issue,...
  Average Spread  (5)
Hello, I am trying to obtain the average spread, for which I am doing the following: void OnTick () { AverageSpread(); } double AverageSpread(){ NumSpreads++; Spread=Spread+MarketInfo( _Symbol , MODE_SPREAD ); return ( NormalizeDouble ((Spread/NumSpreads), 2 )); } I wanted to know if
Is there a way to force a reload of a compiled EA from within MT4? for example if I copied in a new version? I'm compiling it in another folder. Currently I just close and reopen MT4
Hello all, I have an indicator that prints a dot and gives an alert on the mt4, I would like to add mobile notification alert as well. Thing is I can't edit it since I have the ex4 only. With a little bit of searching, I realized that I can add an EA that give an alert when the indicator does using
Hi, Any help - much appreciated :)) If possible to add these inputs to the attached EA: 1. Magic number input 2. Add option for TP and SL using price (there is already TP/SL in pips..) Thanks SO much for any help!!! :) Yaya
here is my chart configuration code inside my EA i was wondering if someone could help me because i seem to be getting an error on "Chart Last Price Line color and Line Mode" // "Modify chart properties" model template < typename T1, typename T2, typename T3, typename T4, typename T5, typename T6
  Enum  (11   1 2)
enum WaveNoB { W3, W_3, W4, W_4, W5, W_5 // }; extern WaveNoB WaveLong = W3; double delka2=W2*Waves/ 10000 ; double delka_2=W_2*Waves/ 10000 ; double W3= W2+delka2; double W_3= W_2-delka_2; ObjectCreate ( "VBox1s3" , OBJ_LABEL , "X" , 0 , 0 ); ObjectSetText( "VBox1s3"
  buffer call  (4)
hey can someone assist me with buffer call for this indicator if (Signal ==INDIBPRO) { double b1 = INDIBPRO( 0 , x), s1 = INDIBPRO( 1 , x); //the buffer for sell is not working find attached indicator <ex4 file deleted>
  Problem with WebRequest().  (11   1 2)
Hello everyone, First thank you for your time and effort to just simply having a look to my problem. To try to make it short I just want to parse some data from a webpage to integrate it in my EA further down the line but I can't manage to parse it for any reason. I just simply follow the
Hi I have made this ea which works fine on the strategy tester but when I put it on my vps for live trading it doesn't open any trades and I can't seem to figure out why. Hope someone can help! //+------------------------------------------------------------------+ //|
class Abc { public: Abc(string def) { if (def != "") { // parse def } else { error... how do we report an error? can I just make the constructor return something? e.g. bool Abc(string def) ? } } }
I’ve only been doing trades using .02. But for some reason when I check the last month, there’s 3 trades that I clearly didn’t make. Also shoes it from 2019? Any idea why
double tickValue=MarketInfo( _Symbol ,MODE_TICKVALUE); string symbol = "EURUSD" ; double ask = SymbolInfoDouble (symbol, SYMBOL_ASK ); string name, length; bool DoAlert = false ; int index = 0 ; if (WaitForClose) index = 1 ; int counted_bars = IndicatorCounted(); if (counted_bars >