//+------------------------------------------------------------------+//| RegressionValue.mq4 |//+------------------------------------------------------------------+int start(){ObjectCreate("REG_CHEN",OBJ_REGRESSION,0,Time[0],0,Time[128],0);// установил канал регрессии.Alert("RegressionValue[1]=",ObjectGetValueByShift("REG_CHEN",1));// возвращаю значение канала 1 бара.return(0);}//+------------------------------------------------------------------+
Please explain why the regression channel value is not returned.
The premise was that indicators usually redraw their value -
so before the movement of 50 pips in any direction in the beginning bar (0) - were taken the values for the already calculated bars - for example 3-5-8-13-21-34 ... on several indices...
- Now I calculated 2 parameters - for example 3 and 8 bars or 34 and 5 bars and took the most profitable results
and the orders were placed
B 7 -20 -10 11300,00 2334 1280 54,8415
i.e. i inserted only 4 out of 240 values into the EA and got the following result
if (pb07 >= 100 && pb07 <= 150) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb08 >= 100 && pb08 <= 150) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb11 >= -30 && pb11 <= -20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb09 >= 100 && pb09 <= 150) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb12 >= -30 && pb12 <= -20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb13 >= -30 && pb13 <= -20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb13 >= -20 && pb13 <= -10) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb12 >= -20 && pb12 <= -10) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb11 >= -20 && pb11 <= -10) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb14 >= -20 && pb14 <= -10) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb14 >= -30 && pb14 <= -20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb07 >= 150 && pb07 <= 200) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); } if (pb11 >= 10 && pb11 <= 20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
In the terminal mt4,file, open offline, M1 (every tick), this is the chart, so that the data goes online.
You open the tester, set the currency and the Expert Advisor, timeframe M1, option "Visualization" and every tick. You press "Start". It is possible to stop the process by pause and to put any indicators on a chart.
You open the tester, set the currency and the EA, the M1 timeframe, the "Visualisation" option and each tick. You press "Start". It is possible to stop the process by pause and put any indicators on the chart.
I want to see the tick chart and to apply an indicator to it,
In the terminal, file tab, open offline, M1 (every tick) - maybe there is an opportunity to make this chart alive.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
how to make a graph M1 every tick online?
So M1 or every tick?
Please explain why the regression channel value is not returned.
So M1 or every tick?
In the terminal mt4,file, open offline, M1 (every tick), this is the chart that the data would go online.
Hi All...
a hint -
here is a table of 65000 rows
8 rows - parameters + 2 rows trade results +- in buy and sell
--
if and how - to analyze parameters - to select the best combinations of results
(parameters - some values from -1200 to +1200)
----
the first thing that came up is to look at combinations of all parameters
but it is 8*7*6*5*4*3*2 number of combinations (40320)
* by 240 gradations in value...
i.e. over 9,676,800 runs of 65,000 lines....
---
maybe something shorter? :-)
Let me explain a little bit...
The premise was that indicators usually redraw their value -
so before the movement of 50 pips in any direction in the beginning bar (0) - were taken the values for the already calculated bars - for example 3-5-8-13-21-34 ... on several indices...
- Now I calculated 2 parameters - for example 3 and 8 bars or 34 and 5 bars and took the most profitable results
and the orders were placed
B 7 -20 -10 11300,00 2334 1280 54,8415
i.e. i inserted only 4 out of 240 values into the EA and got the following result
if (pb07 >= 100 && pb07 <= 150) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb08 >= 100 && pb08 <= 150) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb11 >= -30 && pb11 <= -20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb09 >= 100 && pb09 <= 150) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb12 >= -30 && pb12 <= -20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb13 >= -30 && pb13 <= -20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb13 >= -20 && pb13 <= -10) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb12 >= -20 && pb12 <= -10) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb11 >= -20 && pb11 <= -10) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb14 >= -20 && pb14 <= -10) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb14 >= -30 && pb14 <= -20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb07 >= 150 && pb07 <= 200) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
if (pb11 >= 10 && pb11 <= 20) { OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, Ask - StopLoss*Point, Ask + TakeProfit*Point, "My order #"+total,16384,0,Green);}// mode = 1; return(0); }
and this is without MM - just 0.1 lot
In the terminal mt4,file, open offline, M1 (every tick), this is the chart, so that the data goes online.
You open the tester, set the currency and the Expert Advisor, timeframe M1, option "Visualization" and every tick. You press "Start". It is possible to stop the process by pause and to put any indicators on a chart.
You open the tester, set the currency and the EA, the M1 timeframe, the "Visualisation" option and each tick. You press "Start". It is possible to stop the process by pause and put any indicators on the chart.
I want to see the tick chart and to apply an indicator to it,
In the terminal, file tab, open offline, M1 (every tick) - maybe there is an opportunity to make this chart alive.
I guess this question goes here...
Does this picture come in table form?
In this thread there was a programme and a description of how to use it
http://forum.fxclub.org/showthread.php?t=26214
Thank you. Not many people seem to use it... at least for machine processing.