Expert Advisors and Automated Trading - page 495

Hi All, I have the following code on my editor. My questions are written in RED. I debug my program on a EURUSD M30 chart. Appreciate if anyone can provide me the answers. ------------------------------------------------------- void OnStart() { // the highest bar since market open...
Hello, can't get a string member variable initialized. ////////////////////////////// my_pos ///////////////////////////class my_pos : public CPositionInfo{public: my_pos (string symbol="") : CPositionInfo()    { _symbol=Symbol();    }public...
hi all, i am a complete beginner in EA. I would like to write a program that reads the Highest High of the last 3 30 mins bar on my chart, and return the highest value on my chart in a dialog box. Can anyone tell me how to do that? Thank you.
Enough Good, but I suggest one to adjust quickly and automatically for 3 months Good, but I suggest one to adjust quickly and automatically for 6 months Good, but I suggest one to adjust quickly and automatically for 12 months Good, but I suggest one to adjust quickly and automatically for 2 years...
please find out me the correct mode for buy and sell for this indicator code, example for buy 0>1 for sell 1<0 //+------------------------------------------------------------------+ //| SuperTrend.mq5 | //|...
-
Please help me to create a martingale ea which can trade in both the direction at the same time and same price that can manage profit from negative trade as well as positive trade by pipstep different lotmultiplier
Anyone know how to write EA that &nbsp;runs on offline chart in MT4 or MT5?
In MT4 I can have two buy positions with two different StopLoss. However, in MT5 it will only have one buy position at a time. If I want to trade like following: two buy stop pending orders. Market moved up, first buy pending order triggered with a stoploss SL1. Then market moved up again, second...
Hi all, I have developed an EA in MT5, it works as i planed, but the problem here is , Ea taking new trades after Take Profit , Ea should not tade after Take profit or Hiting Tailing Stoploss until it get a new sell/buy signal, If some one can help me , please give me the code which should i...
[Deleted]
Hi there!, Continuing my MQL5 learning process , today I post this cool EA that works very well on AUDUSD, USDJPY and EURUSD. If you have any question about it, you can comment what you want, I'll check this thread this week to comment whatever. Once again, comments from experts are welcome!! You
Expert or indicator for changing TP Hello, Do you know any expert or indicator which can get averagefrom the orders then according to that take the TP? For example an order isopened at 2 and another one at 6, and average for them is 4, so is there anyexpert witch can take this on one pair...
Can anyone tell me what is the difference between !OrderCalcMargin and OrderCalcMargin? What is the purpose of the exclamation market infront? Cheers
Is there any way to use Strategy Tester in MQL5 for portfolio back test which is not possible with MQL4, but using hedging option? I am talking only for back test not for real trading. Also maybe Metaquotes could make MQL5 possible for hedge in back test if use 2 accounts in testing- 1 for...
Hi, Does anyone have any technical details with regards to running an Expert compiled on a 32 bit version of MetaTrader, on a 64 bit MetaTrader platform? What about the other way around (i.e. 64 bit Expert on a 32 bit version of MetaTrader). Is either of these setups guaranteed to work? Or are you...
For  EA backtesting, how can I program EA only to open trade on New York Session in MT4 and MT5? in History data, is the time is GMT time or else?
Less than 100 between 100 and 300 between 300 and 600 between 600 and 900 between 900 and 1200 between 1200 and 1500 between 1500 and 2000 between 2000 and 3000 more than 3000 (please specify)
I downloaded a demo MQL5 account using a demo acount from Vantage FX.&nbsp; I want to see how the back testing fuction works but every EA I try will not generate trades on any timeframe over long periods of time.&nbsp; What is going on with this POS?
Hi all fellow members, I have a simple question. What one should expect form a expert trading system? How many overall pips it should make each month to be trust worthy?
Hi guys. I looked around this forum and saw some people who made there own EA. Can you direct me to a giude or some site where I can learn to do that my self? Thanks a lot =]
I am newbie to MQL5. Can someone help me to create a mql5 function like the one in mql4 below. In addition to modify all open positions takeProfit to AVPrice + TakeProfit for buy or AVPrice - TakeProfit for sell. Thanks in advance. //----------------------- CALCULATE AVERAGE OPENING PRICE...
Hi guys, I am moving from MT4 to MT5 and am rewriting my libraries. Because of the new concept of having only one postion per currency pair I have a problem. I want to identify how many deals have been made since the postion was reopened. So for example if I do the following trades on any...
The subject says it. 742 is the build. I did search but didn't find anything about it. When I click to disable Autotrading, the EA continues to run. I even took the EA off and replaced it on the chart, enabled it and disable it and it continues to take ticks and process as though Autotrading...
Hi, I use the OnTick event to manage the position. When I want to have the current Profit requesting the position with PositionGetDouble(POSITION_PROFIT), I have only the previous tick Profit. How can I have the very current datas using OnTick, or another event... Christian
Hi all I've a method which i call x-times. I fill an array in this method and I don't know how many times the method will be called during the runtime (every call of the method creates a new entry in the array. It could be upto 300 times before I "free" the array). Short: I don't know the needed...
I've just started playing around with MT5 and I'm loving the additional functionality in the strategy tester - in fact, I'm building some EAs that I've been putting off due to the inability to test them under MT4. Anyway, I've hit a bump in the road and I'm hoping someone can show me how to achieve...
I wrote an EA that I put on a graph (M1). I want it to put a line (object) on another graph (M5) which already exists. Is it possible ? How can I do that ? Christian
Dear Forum, Im traying to handle my placed orders, as I found in many threads usually it is handled by the following loop : for(int i=0;i<OrdersTotal();i++) if((order_ticket=OrderGetTicket(i))>0) ... The Problem is, that my OrdersTotal() call allways returns zero. Does anyone know why...
Trying to learn and develop an EA using MT5         Using this code I can load all the pairs in MarketWatch and it works fine. But everytime you visually backtest the EA it opens an H1 window and an M15. window. Even though the EA istelf is set to be trading M1. I would just like a M1 window for all...
Hi, i am not a very good programmer, but i somehow managed to write one using a tutorial. The problem is when a buy/Sell order is placed SL and TP price is set to null although i set in the code. Setup: Place the Support_and_Resistance.mql in the indicator folder. and EA1.mql in the Expert...
I have run my system into the optimiser but i want to pull into excel each trade or equity curve for each simulation. so if have 10 different subsystems tester by the optimiser i want to export into excel the trades of each subsystem separetely