Forum

how to close after 5 bars

hi guys I am trying to figure out how to close a trade after five 1 minute bars i dont seem to be very good at it , just hoping someone can point me in the right direction thanks Ron

how to get current value of a trendline drawn on chart

Hi there this is an old indicator and I am trying to modify it from horizontal lines to trend lines , but I cant figure out how to read a trendline That I have added to the chart , any ideas or articles on this subject would be appreciated cheers Ron //|

trying again get the info from Arrows

hi guys i am having another go at this I know we can get info from the screen or chart directly into an EA because I have done it with trendlines now I want to do it with the arrows produced by the indicator "EMA Crossover" so i have started completely new code and i have it post along with the

getting info from arrows

hi I am wondering if someone can point me to some info on how to get an arrow from an indicator to be read by EA while the code would be nice I would be happy with just a place with this sort of information I haven't found anything from my efforts so far Thanks in advance

object get making a trendline break

hi i have been trying to adapt this code to my ea so I have got it to find a trend line drawn by me on the chart no it not my code just my adaption of the code the function works and produces the desired result however i can figure out how to get the result out of the function that is i cant get it

Work in Progress

Hi Guys I have an EA i have been building over a few months but i have come to a halt on a part of it so I am looking for some help please if you go to the function marked check signal you will see i am using the int iRetVal to give me signals however it no longer give me anything but a 0 if you run

trailing stop issue

//trailing stop function void CheckTrailingStop(){ double newsl = OrderStopLoss (); for ( int i= 0 ;i< OrdersTotal ();i++) { if ( OrderSelect (i,SELECT_BY_POS,MODE_TRADES)==false) break ; if ( OrderMagicNumber ()!=exMagic || OrderSymbol ()!= Symbol ()) continue ; if ( OrderType ()==OP_SELL &&

playing with that 100pips code

i have been playing with this code to see how far i can take it but i got myself lost here else //close all positions if ((diClose0<diMA1)){ return(0); } if ((diClose0>diMA1)){ return(0); } I was trying to make it so i can have the trigger close the open order and then the ea will open a new order i

get the actual value of an ema

hi guys I am new to this i want get the actual value of an ema and subtract it from another value what i cant figure out is how to get the numerical value I am sure it is simple but i cannot find reference to it anywhere thanks in advance