jurcekmpt / Publications
Forum
Average of moving average difference
Hello! I would like to know how can I get average of moving average difference. I have this but not working. for ( int i= 0 ; i< Bars ; i++) { double EUR_MA= iMA ( "EURUSD" , 0 , 1 , 0 , MODE_SMA , PRICE_CLOSE ,i); double GBP_MA= iMA ( "GBPUSD" , 0 , 1 , 0 , MODE_SMA , PRICE_CLOSE ,i);
How to get every last Bid price, fastest way
Hello! I would like to know how to get every last Bid price of EURUSD, GBPUSD and EURGBP on EURUSD chart . For now I have: double EU1 = MarketInfo("EURUSD",MODE_BID); double GU1 = MarketInfo("GBPUSD",MODE_BID); double EG1 = MarketInfo("EURGBP",MODE_BID); but I think this is faster: double EU1 =
Automatic Lots size increase/decrease
Hello! Is there any better/smarter way to increase/decrease lot size every 100$ by 0.05lot? For now I have this, but I don't like it. Any better way? Thank you! if (AccountBalance()< 300 ) Lots= 0.1 ; else if ( (AccountBalance()>= 300) && (AccountBalance()< 400) ) Lots= 0.15 ; else
ZigZag last peak and bottom
Hello! I would like to know how can I get this zigzag indicator last 3 numbers. I don't care if indicator repaints I just need these numbers. Any idea how to get this 3 numbers to use them with EA? Thank you! Here is source code: #property indicator_chart_window #property indicator_buffers 1
Help with code?
Hello! I would like to write an EA which will set pending orders . I will set pending orders manualy. Let's say at 1.3000 BuyStop and 1.2950 SellLimit (curreny price is below). When/if pending orders are reached nothing happened. When pending order close at TP or SL, EA has to place same pending
How to open new order or pending order immediately?
Hello! I would like to know if it is possible to open order immediately and not waiting for new tick? Thank you
Alert when price hit (touch) MA
Hello! I would like to write indicator which alert me when price touch MA(62), from upper side or from down side. Can anyone help me? Thanks
Your opinion please
Hello! I would like to know what you think about this "strategy". We open trade (buy or sell it is not important) without TP and SL. Then if we get to profit we previous chose we close order if it gets to loss we previous chose we open opposite trade with bigger lots. Then if second and first trade
Line from x GMT to Y GMT candle close indicator
Hello! Does anyone have or know how to write such indicator. It should draw trend line on chart from x time candle close to y time candle close. Thanks
How to remove script for chart
Hello! Does anybody know how to do it? I allready google (https://sites.google.com/site/marketformula/mt4-help/how-to-remove-a-mt4-script-from-a-metatrader-chart ) for this but it does not work. Thanks