Торговая деятельность в платформе связана с формированием и отсылкой рыночных и отложенных ордеров для исполнения брокером, а также с управлением текущими позициями путем их модификации или закрытия. Платформа позволяет удобно просматривать торговую историю на счете, настраивать оповещения о событиях на рынке и многое другое. Открытие позиций...
내가 한 방향으로 10개의 포지션을 열었을 때 - 클로즈에 라인이 작동했고, 9개가 클로즈되었고, 하나가 남았습니다.
----------
이런 식이었다.
//+------------------------------------------------------------------+//| Check for long position closing |//+------------------------------------------------------------------+bool CSampleExpert::CheckForCloseBUY( void )
{
bool res= false ;
for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) // returns the number of current positionsif (m_position.SelectByIndex(i)) // selects the position by index for further access to its propertiesif (m_position. Symbol ()==m_symbol.Name() && m_position.Magic()==MACD_MAGIC)
if (m_position.PositionType()==( long ) POSITION_TYPE_SELL ) // gets the position type
m_trade.PositionClose(m_position.Ticket()); // close a position by the specified symbol//---
res= true ;
//--- resultreturn (res);
}
//+------------------------------------------------------------------+
그랬다
//+------------------------------------------------------------------+//| Check for long position closing |//+------------------------------------------------------------------+bool CSampleExpert::CheckForCloseBUY( void )
{
bool res= false ;
for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) // returns the number of current positionsif (m_position.SelectByIndex(i)) // selects the position by index for further access to its propertiesif (m_position. Symbol ()==m_symbol.Name() && m_position.Magic()==MACD_MAGIC)
if (m_position.PositionType()==( long ) POSITION_TYPE_SELL ) // gets the position type
m_trade.PositionClose(m_position.Ticket()); // close a position by the specified symbolSleep (SLEEPTIME* 1000 );
for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) // returns the number of current positionsif (m_position.SelectByIndex(i)) // selects the position by index for further access to its propertiesif (m_position. Symbol ()==m_symbol.Name() && m_position.Magic()==MACD_MAGIC)
if (m_position.PositionType()==( long ) POSITION_TYPE_SELL ) // gets the position type
m_trade.PositionClose(m_position.Ticket()); // close a position by the specified symbol//---
res= true ;
//--- resultreturn (res);
}
//+------------------------------------------------------------------+
INDICATOR_SHORTNAME에 의해 지표를 제거하는 스크립트
표시기 이름의 올바른 철자를 보려면 터미널에서와 같이 복사해야 합니다.
Slyapal - 수동 거래의 조수.
나는 실제 계정 에서 그것을 확인했습니다 - 그것에 의존하는 모든 것이 작동합니다.
INDICATOR_SHORTNAME에 의해 지표를 제거하는 스크립트
표시기 이름의 올바른 철자를 보려면 터미널에서와 같이 복사해야 합니다.
y 표시기 는 모든 차트 에서 차례로 삭제되며 "취소"를 클릭하여 필요한 차트를 건너뛸 수 있습니다.
y 표시기 는 모든 차트 에서 차례로 삭제되며 "취소"를 클릭하여 필요한 차트를 건너뛸 수 있습니다.
나는 또한 당신의 스크립트로 시도했습니다 - 그것은 당신을 위해 작동합니다.
다른 용도로 필요할 뿐입니다. 나는 그를 고문으로 삼았다.
수평선이있는 표시기가 있으며 어드바이저가 표시기 수평선에서 작업 할 때 표시기가 제거되도록 설정에 등록 된 표시기가 있습니다.
다른 지표를 제거하지 않았습니다.
Slyapal - 수동 거래의 조수.
나는 실제 계정 에서 그것을 확인했습니다 - 그것에 의존하는 모든 것이 작동합니다.
기능이 추가되었습니다.
나는 그것이 수평선에서만 작동한다고 생각했습니다.
하지만 추세선과도 함께 작동합니다. 잘 모르겠습니다. 아마도 개체 이름에서 작동할 것입니다.
테스터의 차트
-------------------------------------------------- ----------------------
너무 바보. 끝까지 몰았다. 그는 또한 0.01의 결과를 보여주었습니다.
여기서 약간 수정했습니다.
- 라인은 더 일찍 제거되었으며, 한 번 나중에 포지션을 마감했습니다 . 닫거나 닫지 않습니다.
이렇게 수정하면 닫힙니다.
그리고 예! - 이 기능은 - 를 대신하여 작동합니다. 추세선, 수평선 또는 일반적으로 개체 이름에서
또한 혼동하지 않도록
input string InpHLineBUY = "open buy"; // ВНИЗУ Name buy input string InpHLineSELL = "open sell"; // ВВЕРХУ Name sell input bool InpReverse01 = false; // Reverse Open - переворот торгового сигнала
"오픈 바이"라고 쓰지 않으려면 항상 현재 가격 보다 낮아야 합니다.
반대로 전환하면 판매가 열립니다.
여기서 약간 수정했습니다.
- 라인은 더 일찍 제거되었으며, 한 번 나중에 포지션을 마감했습니다 . 닫거나 닫지 않습니다.
이렇게 수정하면 닫힙니다.
그리고 예! - 이 기능은 - 를 대신하여 작동합니다. 추세선, 수평선 또는 일반적으로 개체 이름에서
여전히 오류가 남아 있습니다.
그렇게 수정하면 제대로 작동하는 것 같습니다.
조금 더 변했습니다.
내가 한 방향으로 10개의 포지션을 열었을 때 - 클로즈에 라인이 작동했고, 9개가 클로즈되었고, 하나가 남았습니다.
----------
이런 식이었다.
그랬다
이 기능으로
젠장 - 알아 냈어.
비스듬히 추세선을 그렸습니다 - 작동하지 않습니다.
지금까지 전체 라인이 처음부터 끝까지 밝혀졌습니다. 현재 가격은 교차하지 않습니다. - 작동하지 않습니다
요컨대 - 현재 가격이 무엇이든간에 - 일부 개체의 이름만 작동합니다.