Sacred knowledge. - page 4

 
Комбинатор:
Renat, how do you put the buy limit above the ask?

Easy. With the current price of RTS-12.15 around 86950, put the BuyLimit at 88000:

//+------------------------------------------------------------------+
//|                                                    Gauss1_00.mq5 |
//|                              Copyright © 2015, Vladimir Karputov |
//|                                           http://wmua.ru/slesar/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2015, Vladimir Karputov"
#property link      "http://wmua.ru/slesar/"
#property version   "1.00"
#property script_show_inputs
//--- input
input double price_buy_limit=88000;
#include<Trade\Trade.mqh>
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   CTrade MyTrade;
   MyTrade.BuyLimit(1,NormalizeDouble(price_buy_limit,Digits()),NULL,0.0,0.0,ORDER_TIME_GTC,0,
                    "BuyLimit at "+DoubleToString(price_buy_limit,Digits()));
  }
//+------------------------------------------------------------------+

Journal entry:

2015.10.08 21:13:21.133 Scripts script Test (RTS-12.15,H1) loaded successfully
2015.10.08 21:13:22.584 Trades  '1006337': buy limit 1.00 RTS-12.15 at 88000
2015.10.08 21:13:22.613 Trades  '1006337': buy limit 1.00 RTS-12.15 at 88000 placed for execution in 29 ms
2015.10.08 21:13:22.614 Scripts script Test (RTS-12.15,H1) removed
2015.10.08 21:13:22.633 Trades  '1006337': deal #3613940 buy 1.00 RTS-12.15 at 87210 done (based on order #26509865)
 
Karputov Vladimir:

Easy. With the current price of RTS-12.15 around 86950, put the BuyLimit at 88000:

The answer counts. How long did that take?
 
Aleksey:
The answer is credited. How long did it take?

5 minutes to read the reference(https://www.metatrader5.com/ru/terminal/help/trading/general_concept)

In exchange execution mode, the price specified when placing limit orders is not checked. It can be above the current Ask price (for buy orders) and below the Sell price (for sell orders). If you place an order at this price, it will almost immediately trigger and become a market order. However, unlike market orders where a trader agrees to perform a deal at a non-specified current market price, a limit order will be executed at a price no worse than the one specified.

And writing two lines of code.

 
Karputov Vladimir:

5 minutes to read the help(https://www.metatrader5.com/ru/terminal/help/trading/general_concept)

and writing two lines of code.

Hmmm... 5 minutes is pretty fast for setting a limit order. You are a champion, Vladimir.

But there are down-to-earth traders who do it in 3 seconds on the stock market using a tumblr.

Would you dare to come down and repeat the experience? I will have to spend another five minutes reading Renat's guide, but that's OK, we want the result.

We can record a video, we can laugh together.

As a reminder, the task is toto quickly set a limit on the counter price.(the limit order will be executed at a price no worse than the one specified) That is all.

 
Karputov Vladimir:

Easy. With the current price of RTS-12.15 around 86950, put the BuyLimit at 88000:

Journal entry:

First of all we were talking about standard tools without MQL. In particular, it concerns the МТ5 market that should be useful for scalpers.

Secondly, this script is very inconvenient. Do you have to enter the price of the limit every time? Really? When it may go not even by seconds but by fractions?

 
Комбинатор:

First of all, we were talking about standard tools without MQL. In particular, the MT5 market, which is supposed to be comfortable for scalpers.

Secondly, this script is very inconvenient. Do you have to enter the price of the limit every time? Really? When it may go not even by seconds but by fractions?

And it is convenient for scalpers. And there is specialised software for masters who know how to manually dig into long-range contracts.

 
Renat Fatkhullin:
Press F1, please. https://www.metatrader5.com/ru/terminal/help/depth_of_market#quick_trading

Get familiar with trading in the DAM, at least on the demo and understand the different types of Metatrader orders.

Otherwise such miracles have been told here.

I have read it. And there's no quick way to send a counter Limitkick. In Quickk it is there, not as fast as I would like, but it is there. I am allowed to trade only limiters in shares. I don't know what it has to do with it. I don't know if it's because I have limiters only. Or it's because my risk group is lowered. I am dealing with my broker now. But the fact is that I only have to trade with limiters. I should place orders above or below the market to close position fast. It is possible to do it with Quicksilver.
 
Grigoriy Chaunin:
I did some reading. And there's no quick way to send a counter limit. In Quick there is, not as fast as I'd like, but there is. I'm only allowed to trade limitkicks on my stocks. I don't know what it has to do with it. I don't know if it's because I have limiters only. Or it's because my risk group is lowered. I am dealing with my broker now. But the fact is that I only have to trade with limiters. I should place orders above or below the market to close position fast. It is possible to do it with Quicksilver.

How long can you generate false misconceptions? After all, I already told you:

Forum on trading, automated trading systems and trading strategy testing

Sacred Knowledge.

Karputov Vladimir, 2015.10.08 14:01

Yerudna. To broaden your horizons, call a broker or something.

I tried to use some examples and even brought an example of implementation in MQL5:

Forum on Trading, Automated Trading Systems and Testing Trading Strategies

Sacred Knowledge.

Karputov Vladimir, 2015.10.08 20:06

Easy. At the current price of RTS-12.15 around 86950 put BuyLimit at 88000:

//+------------------------------------------------------------------+
//|                                                    Gauss1_00.mq5 |
//|                              Copyright © 2015, Vladimir Karputov |
//|                                           http://wmua.ru/slesar/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2015, Vladimir Karputov"
#property link      "http://wmua.ru/slesar/"
#property version   "1.00"
#property script_show_inputs
//--- input
input double price_buy_limit=88000;
#include<Trade\Trade.mqh>
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   CTrade MyTrade;
   MyTrade.BuyLimit(1,NormalizeDouble(price_buy_limit,Digits()),NULL,0.0,0.0,ORDER_TIME_GTC,0,
                    "BuyLimit at "+DoubleToString(price_buy_limit,Digits()));
  }
//+------------------------------------------------------------------+

Journal entry:

2015.10.08 21:13:21.133 Scripts script Test (RTS-12.15,H1) loaded successfully
2015.10.08 21:13:22.584 Trades  '1006337': buy limit 1.00 RTS-12.15 at 88000
2015.10.08 21:13:22.613 Trades  '1006337': buy limit 1.00 RTS-12.15 at 88000 placed for execution in 29 ms
2015.10.08 21:13:22.614 Scripts script Test (RTS-12.15,H1) removed
2015.10.08 21:13:22.633 Trades  '1006337': deal #3613940 buy 1.00 RTS-12.15 at 87210 done (based on order #26509865)

Just read it carefully:

In exchange execution mode, the price specified when placing limit orders is not checked. It can be above the current Ask price (for buy orders) and below the Sell price (for sell orders). If you place an order at this price, it will almost immediately trigger and become a market order. However, unlike market orders where a trader would agree to perform a deal at a non-specified current market price, a limit order will be executed at a price no worse than the one specified.



 
How do you do this in the marketplace? I am well aware that this can be done by a script or through the New Order form. It's the same whether you enter the price into the script or into the form. I can make a script where you don't have to enter the price and maybe even a lot if you set it beforehand. Although I don't need to write a separate script for my entire portfolio, for each stock.
 
Adept:

And it is convenient for scalpers. And for monsieurs who know how to manually pick distant contracts, there is specialised software.

The truth comes out in bits and pieces!

This is what we are talking about. For long-haul contracts - in fact for low-liquid contracts - MT5 is not suitable. And they are in the majority on the exchange.

And the less liquidity, the less suitable MT5 is for it... And the specialized software is probably Quick...

P.S. By the way, there is specialized software for scalpers too. I very much doubt that any normal scalper uses МТ5 as his market, maybe only the lovers of difficulties... Are there any of them here? Hello!

Reason: