micobez
micobez
micobez
Added topic Only trade once per bar
How do I code a trade only once per bar.  I cannot seem to get it
micobez
Added topic Opening multiple orders
trade.Buy( 0.02 , NULL ,PriceInfo[ 1 ].close,PriceInfo[ 1 ].low, 2 *PriceInfo[ 1 ].high-PriceInfo[ 9 ].low, NULL ); How come does this open multiple trades on a candle instead of only on the value of the previous low
micobez
Added topic Partial close orders
if ( PositionsTotal ()> 0 ){ for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--){ string symbol= PositionGetSymbol (i); if ( _Symbol ==symbol) { ulong Ticket = PositionGetInteger ( POSITION_TICKET ); double sl = PositionGetDouble ( POSITION_SL );
micobez
Added topic shorter horizontal line
I am struggling to find a way to make the horizontal line only start from the bottom of the candle and go out 4 bars instead of infinite  I also don't know how to place horizontal lines at each of these conditions instead of it repainting, I
micobez
Added topic My ea is not working, I am trying to find resistance and support lines however there is no trades happening
Any help would be much appreciated. //+------------------------------------------------------------------+ //| Expert tick
micobez
Added topic How to save variable outside of if statement
I do not know how to save a variable outside of my if statement in my code: the variables I wish to save are    double buyzone;  double buysl;  double buytp; double sellzone; double  sellsl; double  selltp; Code is: void
micobez
Added topic Coding BB into MACD
Hello I currently am having an issue, I am trying to code the BB into the MACD Indicator . Any help would be greatly appreciated. 
micobez
Added topic EA doesn't buy at open but instead buys along the entire candle instead of a set price
I am using the trade.Buy function and for price I put iClose or iOpen(0). However it isnt following the command and is instead buying like this: trade.Buy( 0.01 , NULL , iClose ( NULL , PERIOD_M1 , 1 ), MathMin (low1,low2),Ask+ 3 *ATR, NULL ); Any
micobez
Added topic Coding a trailing stop
My code for a trailing stop does not work, can someone please advise me on what is wrong with the code if ( PositionsTotal ()> 0 ){       for ( int i= 0 ;i>= 0 ;i++)   {    /* string position
micobez
Added topic I do not know how to code a position select and modifier.
This is my line of codes. However it is not working, any help would be greatly appreciated. 
micobez
Added topic How to code ma inside another indicator
How can I code this? 
micobez
Added topic iCustom error
Hello. I'm trying to use the icustom command to utilize the bollingerbandwidth % indicator i got free from the market however i get this error 2018.09.18 14:32:25.062 2017.01.04 21:28:24  cannot open file
micobez
Added topic Order send buy/sell range
Is there anyway to set up the order send function where it can buy or sell in a specified range? 
micobez
Added topic malfunction on mt4 platform.
Hello, Can anyone explain to me why a sell order is counted as a loss in this position? it hits take profit but the balance decreases
micobez
Added topic finally have working trailing stop however it has a small error
   int TrailingStop= 20 ;    if (TrailingStop> 0 )      {      for ( int x= 0 ;x< OrdersTotal ();x++){      if ( OrderSelect (x, SELECT_BY_POS )== True )
micobez
Added topic Imaonarray
Hello I would like to know how to use imaonarray, I cannot understand the first variable in the bracket, the array part who do I do that
micobez
Added topic modify stop loss not working
Hello,  Im trying to modify long positions on mt4 and im using a for loop to change the stop loss to move it up as the profit values are quite high and if it doesnt reach that value it sometimes ends in loss when it couldve still be very
micobez
Added topic need help producing a stoploss that follows up my orders and modifies the stoploss variable
I cannot get it working at all order= OrderSend(NULL,NULL,0.01,open,2,bot-0.0002,MathMax(profit,profit2)+0.0004,NULL,NULL,NULL,Green); x=1; y=1; } for(y=1;y>=2000000000;y++); for(x=1;x>=200;x++); order=OrderSelect(y,SELECT_BY_POS,MODE_TRADES);
micobez
Registered at MQL5.community