Scalper8
Scalper8
Scalper8
Added topic What is the Order Close Price fucntion in MQL5?
In MQL4 for closing price you would use the function OrderClosePrice(), I want to use the same function in MQL5. Is this the correct function  POSITION_PRICE_CURRENT
Scalper8
Added topic How to Loop through orders
I want to loop through hedge orders but with this function it's not the correct way. If you know the correct way to loop or how to assemble hedge/hedging again and again please assist.  #property strict int MagicNumber= 834856 ; double Filter= 0
Scalper8
Added topic Object Problem
Below I have my supply and demand EA, when attaching my EA everything works fine but the problem is when zooming out on a currency pair my  supply and demand rectangles don't appear the same. Instead they appear as resistance and support. This
Scalper8
Added topic Buy pending order problem
Hi all  My EA will not activate a buy pending order , now I'm assuming the problem might be with the Open predefined variable, if you know the problem please assist. #property strict #include <Trade\Trade.mqh> #include
Scalper8
Added topic Trades open once
I want to hedge my trades multiple times instead of once. For example If price opens at buy 1.12345 & sell at 1.12295, how do I hedge my trades at that price multiple times?  int MagicNumber=87897; int BuyTrade= 0 ; int SellTrade= 0 ; int
Scalper8
Added topic EA Opens trades incorrectly
Please help if you know what's the problem. My EA opens trades incorrectly, it opens the sell trade first instead of the buy which is the moving average . I want to open the buy trade first (Moving average) then if it goes opposite (10 Pips)
Scalper8
Added topic Open another trade
I want to open a 2nd trade (if its in profit or a loss within 5 pips), when I execute my 1st trade I would like to open another order. The code below will open when it hits the TP Which is incorrect, please help if you know the problem. bool
Scalper8
Added topic Change timeframes using objects?
Hi All, I want to use my EA on different timeframes without deleting my objects. When I change timeframes my objects don't appear, why is that? if you know the solution please help.  #property strict
Scalper8
Added topic EA displays incorrect Stoploss
Hi All, The problem I encounter when drop my EA on USD/JPY & XAU/USD (2 symbols). On the USD/JPY it displays the stoploss of  XAU/USD & then as price change's it displays the original stoploss (when trailing), so on & so forth. My
Scalper8
Added topic Trailing with commission/spread
The picture below I want to avoid commissions being greater than profits (Loss).  I'd like it to be the other way around when trailing, problem is I don't know if this is the correct way to do so with the trailing function below. 2. Could be
Scalper8
Added topic Trendline Problem
When placing my trendline EA, no trendlines appear on my chart. When back testing they appear, why is that?  If you know the problem to this please assist.  //+------------------------------------------------------------------+ //| Expert
Scalper8
Added topic Closing in loss....
How do I Close in loss? I would like to close in loss (2 pips). The code below closes all order/s instead of 2 pips loss. Please help with the code below.  for ( int Loop2= OrdersTotal ()- 1 ;Loop2>= 0 ;Loop2--)   {    if
Scalper8
Added topic Sell Order won't open
Below is my code, sell order won't open (if statement) is the same as buy. I would like to arbitrage buy & sell. Are my Price1 & Price2 functions correct for  arbitrage? Your help will be appreciated! extern double TakeProfit= 5 ; extern
Scalper8
Added topic Array out of range
I have problem with string array. Its says " array out of range " when I loop the following, It will only open "NZD/USD". Why? string symbol[]={ "EURUSD" , "GBPUSD" , "AUDUSD" , "NZDUSD" }; string symbol2[]={ "USDJPY" , "USDCHF" , "USDCAD" };
Scalper8
Added topic String Array Problem
I have a problem when using string arrays. When I drop my EA on GBPUSD it will not open and others pairs. It only opens on the 1st arrays "EURUSD" and "USDJPY".  void BuyTrade() {    int Final= 0 ;       string
Scalper8
Added topic string function on 2/3 digits
Please help with my EA, I would like to buy on the  EURUSD & sell on USDJPY (same time)  . The problems I encounter are when I place my EA on EURUSD (buy) & sell on the USDJPY (2 or 3 digits) my stop losses & take profits are
Scalper8
Added topic Objects repaint and vanish
When I place my EA , my objects repaint or vanish and sometimes appear again after sometime.  What seems to be the problem? void OnTick () {    if ( TimeCurrent ()==Time[ 0 ])   {    int s = iLowest ( Symbol () , 0
Scalper8
Added topic Stop loss & Take profit are too close to price
I'm new to MQL4, please help with my code. When I place my 2nd order, both Take profit and stop loss are TOO close to price instead of TP= 7, SL=2. What is the problem??? extern double TakeProfit= 5 ; extern double TakeProfit2= 7 ; extern double
Scalper8
Registered at MQL5.community