FORTS: To help beginners - page 8

 
Виктор Астахов:

If it's no secret, can you tell me how to close a position on FORTS?
I wrote a function to close a position, based on yours, but it's not working, inalid requesters.

There is not much information on this subject.

There is no hedging here, we have one position for each symbol - total.

So TRADE_ACTION_DEAL, ORDER_TYPE_BUY or ORDER_TYPE_SELL, POSITION_VOLUME.

Or each expert knows his position(volume) and covers only it.

 
JRandomTrader:

There is no hedging here, there is one position for each symbol - total position.

So TRADE_ACTION_DEAL, ORDER_TYPE_BUY or ORDER_TYPE_SELL, POSITION_VOLUME.

Or each Expert Advisor knows its position(volume) and covers only it.

I understand, in fact, it is just the market that covers the opposite. Thank you very much.

 
Виктор Астахов:

I get it, essentially just to wing the market in the opposite direction. Thank you very much.

I can also use a limit order, so that the price does not fly too far, but there is a risk of not being able to close.

 
JRandomTrader:

You could also use a limit so that the price doesn't fly too far, but there is a risk of not closing.

Yeah, that's a problem, by the way. It is not as profitable as intended.
Probably, I will open with stock stop, or rather add a stop, e.g. 100 pips
. At least doll will notice my little request.

 
Виктор Астахов:

Yeah, that's the problem, by the way. It's not as profitable as I thought it would be.
I think I will probably open with stock stop, or rather add a stop, e.g. 100 pips
At least Puppet will notice my little request.

My robots, except for some of them, open and cover according to the market. Stop is dynamic and non-linear, take - only in some algorithms.

 
Виктор Астахов:

If it's no secret, can you tell me how to close a position on FORTS?
I wrote a function to close a position, based on yours, but it's not working, inalid requesters.

I cannot find much information on this matter.

bool  PositionSelectByTicket( 
   ulong   ticket     // тикет позиции 
   );

Ticket the position and you substitute the order ticker.

Use

PositionSelect()
 
prostotrader:

Ticket the position and you will insert the order ticker.

Use

PositionSelect()

Anything associated with Position is subject to immediate destruction in netting.

 
Dmi3:

Anything related to Position is subject to immediate destruction in netting.

Why not destroy the entire terminal?

 
prostotrader:

Why not destroy the whole terminal?

And after that, legs up to the chin...

 
prostotrader:

Why not destroy the whole terminal?

What is this deep thought here?