MQL4 and MetaTrader 4 - page 786

I would like to use different indicator timeframe as trigger signal of an EA. For example I use indicator shown here with time frame of PERIOD_M1 as signal of an EA, then I attach the EA on a D1 period. Did I do it right? I tried this but the EA did not work properly. What is the missing code here
Hi there guys! I just made a little EA to test a strategy here but my knowledge of programming goes only so far and there are a few problems I want to solve and hoped you guys could help me out here: 1) The ea needs to open a trade right at the open of a new candle, if the rules are met on the...
[Deleted]
AccountBalance AccountCredit AccountCompany AccountCurrency AccountEquity AccountFreeMargin AccountFreeMarginCheck AccountFreeMarginMode AccountLeverage AccountMargin AccountName AccountNumber AccountProfit AccountServer AccountStopoutLevel AccountStopoutMode Alert ArrayBsearch ArrayCopy...
  Trying to get 99% accuracy  (12   1 2)
Well I'm trying to get 99% accuracy so that my EA can eventually leave the back testing stage. I downloaded tick story but it doesn't seem to be showing any data (the pairs don't have an earliest and latest date) When I try and run birts ticksuite I get an error messege telling me the the...
I made up a Indicator with 12,26 MA lines I want filled up with color in two MA lines What should I do Here is the code, adapted from bands... poor eng. sorry //+------------------------------------------------------------------+//| |//| Copyright 2005-2014, MetaQuotes Software Corp. |//| https...
hi there, thanks for your assistance. I'm trying to write some code that will print out my horizontal lines but the script is loaded and then removed. Does the mrket have to be open to run or why doent it work? anks, brad. int TotalHLines=0;void OnStart()  {  Print("hello");...
Hello, I want to use MA within the Stochastic indicator window. When the 'Signal' line crosses with that MA, Buy/Sell will trigger. To do this, how can I define the iMAOnArray()? double Signal_Sto= iStochastic(NULL,0,70,5,5,MODE_EMA,0,MODE_SIGNAL,0); // The Signal Linedouble MA_Sto= iMAOnArray(...
[Deleted]
Hi all, I have a problem i can't understand it,i finished orders with sell or buy and i close the trades...but when i look to the account history ... i find these : as open trades ... in the account statement.and report !!!..although i finished the trades and orders are accepted from the market !!!!...
Hi Is there any formula for finding whether two trend lines are parallel? I am finding the slope of first trend line and matching with the other, but it is not accurate. Any other guidelines please. Thanks. richo.
Hi, while in strategy tester I Try to modify my stop loss and I get error 145 (short position). I can not explain the reason why because the Stoplevel is 10 pips, my TS is 39 pips and the SL-Ask=48 pips > than 10 (the stop level) The position at hand is a short position! 2014.03.01 13:53:05.343...
//+------------------------------------------------------------------+//|                                                    Color RSI.mq4 |//|                                                           mladen...
Hi, My second try to use OnTester(). I have seen from 'Make-A-New-EA' that OnTester() should be a 'root-function' and seems not to be meant to be called from within OnTick() - as I said example-code would be so easy and helpful. Well OnTester() is a function that returns a double. To the genetic...
Hello, I want to download to mql4_Chinese. CHM reference documentation, can you help me?Thank you very much
[Deleted]
Hello, https://book.mql4.com/ I can download https://www.mql4.com/files/MQl4BookEnglish.chm But I dont succeed to open it. Regards, Pierre8r
[Deleted]
  Backtesting Help  (2)
Have metatrader 4 and an EA. Performed some backtesting and everything looked great. I then updated to the newest version of metatrader and did the history downloads and again performed some backtesting. Results terrible. When backtesting ea originally had not downloaded history but could see all...
[Deleted]
Could someone look over this piece of code and see if they notice what the problem is? I keep getting error 4107 and 130. What I am trying to do is to have it set a pending order using the high and low from the past 8 hours. Thanks for the help. void CheckForOpen(){double TP_BuyLevel, SL_BuyLevel,...
Hi, why code below output zero which is wrong? double b=0; b=30/100; printf(b); //output zero wrong and code below output is correct. double b=0; b=30.0/100.0; printf(b); //output 0.3 correctly Thanks.
  Momentum Prices  (9)
Hello There Here I am again trying another strategy and facing new issues. I am importing in an array market prices and Momentum prices using 7 different mom periods 10,55,89,144,233,377,610 in 3 different positions. The issue is that I don’t take mom prices for 233,377 and 610 for the last 2
Hello Boys I am trying to extract the latest high and latest low painted on the chart by the ZigZag indicator at any moment. Unlike other indicators, the problem with this fellow is that... the number of bars to be counted back is not fixed, it can also skip to Bar0 and start moving again within...
[Deleted]
hello, I would like to create a script wich CLOSE in 3 step one manual open position. EXAMPLE : If I have open a long position of 1 lot, I would like that my script close 0.33 lot 30 pips more higher than my open price (take profit), 0.33 lot 60 pips higher than open price order and finally 0.33 lot...
Hi, I have programmed an indicator and wrote a few labels on the right. Can I program a definite chart shift for my indicator?
[Deleted]
Hello, Is it not possible that a function return a object ? 'return' - structure have objects and cannot be copied OOP_FunctionReturnObject.mq4 27 4 //+------------------------------------------------------------------+//|                                     OOP_FunctionReturnObject.mq4...
Hi I ran the start-tester with. the tester was stopped and then I wanted to delete the fxt-file but is was blocked by terminal.exe (acc. to LockHunter). After unlocking it could be deleted and re-created by CSF2FXT.mq4. Alternatively I would have to kill terminal.exe and restart. :( could be...
Hello, I am trying to build an indicator that is drawn as candles, but the following line of code: #property indicator_type1 DRAW_CANDLES gets the following error when I try to compile it: 'indicator_type1' - unknown property MultiTFCandles.mq4 15 11 Does anyone know if "DRAW_CANDLES" is...
  GrabWeb Function  (3)
Dear Friends Could you please have a look at the below and advise me why its not working in new version of MQL4? //===================================   GrabWeb Functions...
[Deleted]
  Indicator Plots  (5)
Hello all, I'm trying to get my head around indicator plots and buffers. I've done quite a bit of reading, but there are a few things I'm still trying to figure out. Let's say I'm using 6 buffers... 2 of which I want to plot as lines. All the examples I see have the plots first, then the rest
I would like to create the alarm that sound repeatedly until off when RSI is value is in the user-specified range. Can you help me out, I'm expecting the website to take a look at. I am not asking to solve. I am asking for help to point out ~ Thanks in advance ~
Hi, I am debugging a script. Before that I defined my default.tpl but as soon as press F5 (start debugging) a new chart is opened which is something else than what I defined as default :( Gooly
Hi, I just realized that my b509-EA with int start(){ ..} is not able to be run in the debugger X( So I tried to use all that new void OnWhateEver(). 1) From what I see in the reference I do not know whether all these functions do have/need a body or not like AccountName(). I assume not because it...
[Deleted]
Hi, Could someone point me in the direction of where I can access trader sentiment (xxxxx) and store historical data for backtesting? From what I can see xxxx only provides about 2 hours of history. I'm ideally looking for 2 years+ of minute level data. Thanks!