Discussing the article: "USD and EUR index charts — example of a MetaTrader 5 service" - page 3

 
Roman Shiredchenko #:
How did you get a graph like that in the tester? Is that the graph from the tester? You can test a custom symbol with a tester. I know that.....

How to take data into the robot from synthetic?
And from indicators on the synthetic. How to get their data in the robot on the synthetic chart?

I don't quite understand what you want from me, are you trying to trade on a custom symbol? I think it's impossible

I was showing the chart from the tester, from the bot where the synthetic is running, and trading with real trading instruments included in the synthetic. The bot is multicurrency, otherwise there is no other way.

Another important point, in the specification of the synthetic it is necessary to screw volumes down (for example, min lot 0.00001), this is such a trick for MT5, so that the tester takes the trading results of the synthetic for zero, otherwise there will be a false sense of graality ))))


I can't tell you the technical part ))) I don't know how to code

 
Roman Shiredchenko #:
What's the usual? )

Through Symbol() and Period() ) )

What exactly do you want to get from the synthetic?

 
Artyom Trishkin #:

What exactly do you want to get from a synthetic?

Bid ask open 0 open 1 close 0 close 1

And from Envelopes indicator buffers top line at 0 1 2 bar
And bottom line at 0 1 and 2 bars.

Further I may learn to make other indicators by analogy.... read data from them into the robot.....
 
Nikolay Moskalev #:

I'm not sure what you want me to do, are you trying to trade on a custom symbol? I don't think that's possible.

I was showing the chart from the tester, from the bot where the synthetic is spinning, and trading real trading instruments included in the synthetic. The bot is multi-currency, otherwise there is no other way.

Another important point, in the specification of the synthetic it is necessary to adjust the volumes downwards (for example, min lot 0.00001), this is such a trick for MT5, so that the tester takes the trading results of the synthetic for zero, otherwise there will be a false sense of graality ))).


I can't tell you the technical part ))) I don't know how to code

How to test synthetic?

You can tell me more details.... I know you can't open a pose on synthetic. Buy sell...

I can do it myself in the code in my robot. Hedge. On trades.

How do you test synthetics?
 
Roman Shiredchenko #:
How to test synthetic?

More details, please.... I know you can't open a pose on synthetic. Buy sell...

I can do it myself in the code in my robot. Hedge. On trades.

How do you test synthetics?
Synthetic should be in the Market Watch. In the tester select the synthetic tool and start the test.
Make your own synthetic, for example, the difference between Ask Eurojusd and Bid Cadusd and look at its chart and make a test of a simple EA on it. Then it will be easier to understand.
And you can open a position. Just not in the market).
 
Valeriy Yastremskiy #:
Synthetic must be in the market overview. In the tester, select the synthetic tool and start a test.
Make your own synthetic, for example, the difference between Ask Eurojusd and Bid Cadusd and look at its chart and make a test of a simple EA on it. Then it will be easier to understand.
And you can open a position. Just not in the market).
Yes. I've got a rough idea. I'll try it. That it should be in the market review I know it from the docs.... )
 
Roman Shiredchenko #:
Bid ask open 0 open 1 close 0 close 1

And from Envelopes indicator buffers top line on 0 1 2 bars
And bottom line on 0 1 and 2 bar

How to get the same data for, for example, EURUSD ?

 
Artyom Trishkin #:

How to get the same data for e.g. EURUSD ?

I know how. You can use the indicator via init via the handle first. Then through iCustom....
Is it the same here?
Or straight through iMA... for example....
By symbol via bid-ask queries like SymbolInfoDouble.....
iOpen.....
iClose.... for example.

In general, as with a normal symbol - it's OK.

For example, if the opening price is lower than the lower lin envelope - a condition - then I already open a position in the robot by synthetic symbols for example sell.....
That's superb then.

Thanks Artem for the hint.....
 
Roman Shiredchenko #:
I know how. You can use the indicator through the init through the handle first. Then with iCustom....
Is it the same here?
Or straight through iMA... for example....

I don't get it. Where is the code to get Bid ask open 0 open 1 close 0 close 1 symbol EURUSD ?

Right here you need... The code to get this data.

 
Roman Shiredchenko #:
How to test synthetic?

You can tell me more details.... I know you can't open a pose on synthetic. Buy sell...

I can do it myself in the code in my robot. Hedge. On trades.

How do you test synthetics?

If I understand you correctly, you want to know how to make your EA evaluate data from the custom chart and execute trades on a tradeable symbol.

In the trading conditions (data analysis) section of your EA code, just reference the custom symbol name that appears in your Market Watch window. Example...

double close = iClose( DXY_Z4, PERIOD_M1, 1);

And in the trade execution logic (orders) section of your EA code, just reference the tradeable symbol(s) that also appear in your Market Watch Window.

(I do this with custom Renko charts quite often).