Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1146

 
Evening. Maybe someone has encountered, in 1:1 scale mode there is no adequate chart alignment by price coordinate. Is it possible to make this alignment in a hardware way (perhaps there is some kind of chart shift at a given price coordinate (similar to time navigation))?
 
Hello, I'm using a panel created using CDialog. Other objects, such as price lines, etc., are displayed after it. How do I set the priority so that my chart is on top of all other objects?
 
leonerd:
Hi. I am using a panel created with CDialog. Other objects like price lines etc are displayed after it. How can I set the priority to put my chart on top of all the other objects?

More precisely, the panel is created by theCAppDialog::Create() method. How do I set it on top of all of them?

 
leonerd:

More precisely, the panel is created by the CAppDialog::Create() method. How do I set it on top of everyone else?

There was a chart setting on foreground, so the panel was on the back

 

Can you give me a hint? I get an error(Invalid stops) when checking with the market when removing limit orders. Can't figure out what the problem is.


LM 0 07:39:49.672 Core 01 2017.05.12 23:00:00 price = 1.0092 symbol = USDCHF beforeorder = 0.008230000000000182 freeze = 0.0001999999999999999

2017.05.12 23:00:00 failed cancel order #40 sell limit 1.20 USDCHF at 1.009 sl: 1.012 tp: 0.966 [Invalid stops]

RO 0 07:39:49.672 Core 01 2017.05.12 23:00:00 price = 1.0092 symbol = USDCHF beforeorder = 0.008230000000000182 freeze = 0.000199999999999999999

2017.05.12 23:00:00 failed cancel order #40 sell limit 1.20 USDCHF at 1.009 sl: 1.012 tp: 0.966 [Invalid stops]

 
Mikhail Sergeev:

Can you give me a hint? I get an error(Invalid stops) when checking with the market when removing limit orders. Can't figure out what the problem is.


LM 0 07:39:49.672 Core 01 2017.05.12 23:00:00 price = 1.0092 symbol = USDCHF toorder = 0.008230000000000182 freeze = 0.0001999999999999999

2017.05.12 23:00:00 failed cancel order #40 sell limit 1.20 USDCHF at 1.009 sl: 1.012 tp: 0.966 [Invalid stops]

RO 0 07:39:49.672 Core 01 2017.05.12 23:00:00 price = 1.0092 symbol = USDCHF beforeorder = 0.008230000000000182 freeze = 0.000199999999999999999

2017.05.12 23:00:00 failed cancel order #40 sell limit 1.20 USDCHF at 1.009 sl: 1.012 tp: 0.966 [Invalid stops]

And you print: Bid and Ask price, spread,SYMBOL_TRADE_FREEZE_LEVEL and SYMBOL_TRADE_STOPS_LEVEL levels ...

 
Vladimir Karputov:

And you print: Bid and Ask price, spread, SYMBOL_TRADE_FREEZE_LEVEL and SYMBOL_TRADE_STOPS_LEVEL levels ...

GL 0 11:35:51.008 Core 01 2016.04.29 23:00:00 price = 0.75714 s= AUDUSD to order = 0.003290000000000015 freeze = 20 ask= 0.76043000000001 bid = 0.76031 spread = 12 stlev = 30 p= 9.99999999999999996e-06dig= 5

2016.04.29 23:00:00 failed cancel order #25 buy limit 0.50 AUDUSD at 0.757 sl: 0.746 tp: 0.776 [Invalid stops]

HQ 0 11:35:51.008 Core 01 2016.04.29 23:00:00 price = 0.75714 s= AUDUSD to order= 0.0032999999999999 freeze = 20 ask= 0.76044 bid = 0.76032 spread = 12 stlev = 30 p= 9.999999999999996e-06dig= 5

2016.04.29 23:00:00 failed cancel order #25 buy limit 0.50 AUDUSD at 0.757 sl: 0.746 tp: 0.776 [Invalid stops]

SymbolInfoDouble(symbol, SYMBOL_POINT) function sometimes returns 9.9...
 
Mikhail Sergeev:

GL 0 11:35:51.008 Core 01 2016.04.29 23:00:00 price = 0.75714 s= AUDUSD before order = 0.003290000000000015 freeze = 20 ask= 0.760430000000000001 bid = 0.76031 spread = 12 stlev = 30 p= 9.99999999999999996e-06dig= 5

2016.04.29 23:00:00 failed cancel order #25 buy limit 0.50 AUDUSD at 0.757 sl: 0.746 tp: 0.776 [Invalid stops]

HQ 0 11:35:51.008 Core 01 2016.04.29 23:00:00 price = 0.75714 s= AUDUSD to order= 0.0032999999999999 freeze = 20 ask= 0.76044 bid = 0.76032 spread = 12 stlev = 30 p= 9.999999999999996e-06dig= 5

2016.04.29 23:00:00 failed cancel order #25 buy limit 0.50 AUDUSD at 0.757 sl: 0.746 tp: 0.776 [Invalid stops]

p, b, c... You should also encrypt the algorithm.

Print it like a human (without cuts and in English).

Forum on Trading, Automated Trading Systems & Strategy Tests

FAQ from Beginners MQL5 MT5 MetaTrader 5

Vladimir Karputov, 2019.11.13 08:28

And you print: Bid and Ask price, spread, SYMBOL_TRADE_FREEZE_LEVEL and SYMBOL_TRADE_STOPS_LEVEL levels ...


 
Vladimir Karputov:

p, b, c... You should also encrypt it with an algorithm.

Print it out in human way (I specify - without abbreviations and in English).


Can you tell me how to print it in English?

 
Mikhail Sergeev:

Can you tell me how to output it in English?

Here it is:

Forum on trading, automated trading systems and trading strategy testing

FAQ from Beginners MQL5 MT5 MetaTrader 5

Vladimir Karputov, 2019.11.13 08:28

And you print: Bid and Ask price, spread, SYMBOL_TRADE_FREEZE_LEVEL and SYMBOL_TRADE_STOPS_LEVEL levels ...


Another important thing is how you update prices (and do you update them at all?). Spread - how do you get it?

Reason: