chris.dotan
chris.dotan
chris.dotan
Added topic Problem with SL and TP when use buy/sell stop
HI, int orderSend = OrderSend ( Symbol (), OP_BUYSTOP, lotSize, Ask+OpenBuySellStop* _Point , Slippage,Bid-FixedSL* _Point ,  Bid+FixedTP* _Point , comment, MagicNumber, TimeCurrent ()+ 60 * 45 ); FixedSL = 300 points FixedTP = 1000
chris.dotan
Added topic How to get in real time last bar points for buy/sell for m15 TF
hi, I need to get how much is bullish or bearish candle in points in real time and after that use if something. I have M15 TF  if is my candle bullish with 150 points then use if  something if is my candle bearish with 150 points then use
chris.dotan
Added topic Trigger on only new bar
hi, int start()   {    if (NewBar()== true )      {    double sma6 = iMA ( Symbol (), 0 , 6 , 0 , MODE_SMA , PRICE_CLOSE , 0 );        Sleep ( 2000 );  
chris.dotan
Added topic Problem with install EA from market
Hi, I have Internet Explorer 11 and I have trusted site and I have tried a lot of options, also with remove community folder still I have empty Market. How can I resolve this? Regards
chris.dotan
Added topic Trailing stop for sell
Hi, this code works perfectly for buy, but for sell how to do this with char "<", ">"    // Buy Order    for ( int b= OrdersTotal ()- 1 ; b>= 0 ; b--) {      if ( OrderSelect (b, SELECT_BY_POS
chris.dotan
Added topic Problem with trailing stop loss
Hi, code below works but only for buy, for sell not activated. What is problem? void AdjustTrail( double WhenToTrail, double TrailAmount) { int ticket = 0 ;    // Loop through orders.       // Buy Order    for
chris.dotan
Added topic Event Handling for close/open
Hi, how to get info when trade close or open? Is there any Event Handling? Regards, 
chris.dotan
Added topic How can I get how much points are negative?
Hi, this is my code and works very well but how can if I have 1/2 points in negative amount then need to call something? MathAbs (( NormalizeDouble (((OrderOpenPrice() - (lowest- 30 * _Point )) / MarketInfo( Symbol (), MODE_POINT)), MarketInfo(
chris.dotan
Added topic How to Store StopLoss for trades and call if I change to 0
Hi, I want to store stoploss in StopLoss manually also if I change. I need to get only first StopLoss, and then change in variable only first time. If StopLoss has been changed in the future, in my variable this not change. My code: double
chris.dotan
Added topic How to get max DD floating?
Hi, I can see on details statement Maximal DD  not means floating, but this is for me very important. How can I calculate Max DD for floating in my EA for each symbol
chris.dotan
Added topic Problem with trailing stop when activating
Hi, my trailing stop is activated when reach 1/2 stop loss or profit. Trailing stop skače between 2-3 pips. Code: void tStop( string symb, int stop, int MN) // Symbol + stop in pips + magic number {      double bsl =
chris.dotan
Added topic How to get info what candles closed below/above using MA
Hi, I want to get what candle Bearish/Bullish closed above/below using MA. This is my code, but not works. double ema13 = iMA ( _Symbol , _Period , 13 , 0 , MODE_EMA , PRICE_CLOSE , 0 );           bool
chris.dotan
Added topic How to get M and W pattern in EA?
Hi. is possible to get M and W pattern (check in attachment image )? Regards, Chris
chris.dotan
Added topic PullBack Moving Average
Hi, two weeks ago I found good code for Pullback but I can't found this code any more. If I have EMA, and if is candle bullish, when go back to the EMA or touch or go over EMA then get Alert . How to do this? Thanks
chris.dotan
Added topic How to get bull/bear candle?
Hi, I need to get if is candle bear and bull.  I found some code but not works.    bool bullish = Close[ 1 ] > Open[ 1 ] && Open[ 1 ];          bool bearish = Close[ 1 ] < Open[ 1 ]
chris.dotan
Added topic How to get candle prices body between open and close?
Hi I need to get prices between one candle Body and then call if this prices is exist in Moving Average . Moving average not problem to get, but how can I get Price with Body Candles. Prices just like that: 1.22500, 1.22511, 1.22522 and then simple
chris.dotan
Added topic How to calculate pips between two values
Hi, val1: 1.40900 val2: 1.41100 How can I get 20 points? Regards, Dejkan
chris.dotan
Added topic Problem with retrieving points
Hi, 5 digits: double   value1 = NormalizeDouble ( 1.21776 , 5 ); double   value2 = NormalizeDouble ( 1.23276 , 5 ); double calc = NormalizeDouble (value2-value1, 5 ); Print (calc); 2 digits: double   value1 =
chris.dotan
Added topic One Chart multiple Symbol with different Magic
string syms[] = { "EURGBP" , "EURUSD" }; for ( int i= 0 ; i < ArraySize (syms); i++) { } its working. How to add random magic number for specific symbol, or magic number can be whatever only different from other symbol? I used one chart for
chris.dotan
Added topic How to make Activation/Deactivation for clients
Hi, I checked some EA, but I can see it's possible to use activation/deactivation without to add URL in settings. How can do this this? What can I use for this? Regards
12