Работа индикатора идёт с барами, которые видимы в окне графика. График разбивается на зоны ("Zone") и в каждой зоне пдсчитывается количество попаданий цен. Принцип расчёта: если цена High или Low попадает в зону, считается, что в этой зоне счётчик попаданий...
//+------------------------------------------------------------------+//| start function |//+------------------------------------------------------------------+void CloseAllProfit0()
{
//---for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) // returns the number of current positionsif (Extposition.SelectByIndex(i)) // selects the position by index for further access to its properties
{
if (( PositionGetDouble ( POSITION_PROFIT )/ PositionGetDouble ( POSITION_VOLUME )/
SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ))/n>InTakeProfit)
ClosePosition(Extposition. Symbol ()); // close a position by the specified symboif (UseSound)
PlaySound ( "ok.wav" );
}
}
//+------------------------------------------------------------------+//| start function |//+------------------------------------------------------------------+void CloseAllLoss0()
{
//---for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) // returns the number of current positionsif (Extposition.SelectByIndex(i)) // selects the position by index for further access to its properties
{
if (( PositionGetDouble ( POSITION_PROFIT )/ PositionGetDouble ( POSITION_VOLUME )/
SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ))/n<-InStopLoss)
ClosePosition(Extposition. Symbol ()); // close a position by the specified symboif (UseSound)
PlaySound ( "ok.wav" );
}
}
//+------------------------------------------------------------------+
파일 수정 및 첨부
누가 말할 수 있습니까? 어디에 넣어
if (UseSound)
PlaySound ( "ok.wav" );
어디에서 발견
여기
//+------------------------------------------------------------------+//| Close selected position |//+------------------------------------------------------------------+void ClosePosition( conststring symbol)
{
if (InitTrade(symbol))
ExtTrade.PositionClose(Extposition.Ticket()); // close a position by the specified symboif (UseSound)
PlaySound ( "ok.wav" );
}
//+------------------------------------------------------------------+
Советник во входных параметрах имеет шесть команд: Close All Buy's - закрыть все позиции BUY по текущему символу, magic number позиций не учитывается Close All Sell's - закрыть все позиции SELL по текущему символу, magic number позиций не учитывается Close All Buy's and Sell's - закрыть все позиции BUY и SELL по текущему символу, magic number...
오늘 나는 실생활에서 이 기능을 테스트할 것이다
표시선에 의해 FiboPivot_V2
표시기의 짧은 이름을 입력해야 삭제됩니다.
- 인디케이터를 제거하지 않으면 라인이 다시 설정되어 포지션 오픈이 반복됩니다.
여기에 훌륭한 지표가 있습니다 https://www.mql5.com/en/code/26585
가격 밀도내 고문에게
수평에서 구매하고 숫자 SL에서 구매하십시오.
개체 목록으로 이동하여 이름을 복사해야 합니다. 모든 라인 또는 숫자
또는 이 아이콘을 BUY 및 STOP 하단에 설정하여 표시기를 삭제하지 않도록 할 수 있습니다.
모든 작업을 공동 또는 개별적으로 보류 중인 주문 으로 변경할 수 있습니다.
보류 주문은 트롤처럼 가격을 따릅니다.
여기 개체의 이름이 저를 위해 일했고 아래 그림에서 보류 중인 주문 을 했습니다.
동그라미로 표시된 개체는 아직 도달하지 않았습니다. 현재 가격이 개체 아래로 떨어질 때까지 기다리고 있습니다.
이제 SELLSTOP이 작동하면 - 위에서 SELL 을 닫도록 명명된 개체를 설정했습니다.
SELLSTOP이 작동하지 않고 가격이 더 올라가면 마감 개체가 삭제됩니다.
보류 중인 주문 은 가격을 따릅니다.
-------------------------------------------------- ------------------------------
이 EA에 없는 것은 .
이 기능을 개선해야 합니다.
여기 뭔가 잘못된 위치에 소리를 넣어
파일 수정 및 첨부
누가 말할 수 있습니까? 어디에 넣어
어디에서 발견
여기
모든 작업을 공동 또는 개별적으로 보류 중인 주문 으로 변경할 수 있습니다.
보류 주문은 트롤처럼 가격을 따릅니다.
여기 개체 이름이 나를 위해 일했고 아래 그림에서 보류 중인 주문 을 했습니다.
동그라미로 표시된 개체는 아직 도달하지 않았습니다. 현재 가격이 개체 아래로 떨어질 때까지 기다리고 있습니다.
이제 SELLSTOP이 작동하면 - 위에서 SELL 을 닫도록 명명된 개체를 설정했습니다.
SELLSTOP이 작동하지 않고 가격이 더 올라가면 마감 개체가 삭제됩니다.
보류 중인 주문 은 가격을 따릅니다.
-------------------------------------------------- ------------------------------
이 EA에 없는 것은 이라는 객체를 뒤따르는 것입니다.
이 기능을 개선해야 합니다.
위치에 들어갔다 - 무엇이 우리를 기다리고 있습니까?
이름으로 개체를 이동 - SELL을 닫습니다.
또한 이름으로 개체를 이동했습니다.
여기에서 이 비즈니스를 자동으로 추적해야 합니다.
그래서 나는 물건을 옮기지 않았지만 고문은 그 이름으로 물건을 옮겼다.
더 낮은 위치로 이동 - 118.811 SELL 의 개체가 닫힙니다.
더 많이 움직였다
나는 보여주고 싶지만 모든 것이 방법이 아닙니다. 이미 밀도가 높은 곳으로 옮겼습니다.
입력하는 동안 - 이름이 있는 개체에서 닫힘
https://www.mql5.com/ru/forum/233860/page43#comment_13219147
정말 감사합니다! Vladimir Karputov 당신과 당신의 사랑하는 사람들에게 건강!
당신의 기능을 어드바이저에 추가했습니다
유틸리티 중 하나에 2개
https://www.mql5.com/ru/code/26353
블라디미르 카르푸토프 :
두 개체 이동 - 수평선
https://c.mql5.com/3/291/Trailing_Objects.mq5
유틸리티 중 하나에 2개
https://www.mql5.com/ru/code/26353
블라디미르 카르푸토프 :
두 개체 이동 - 수평선
https://c.mql5.com/3/291/Trailing_Objects.mq5
나는 사용할 수있는 다른 것을 추가했습니다 - 4 개의 수평선으로 어떤 방향으로든 열고 닫을 수 있습니다 - 음, 트롤.
수평선은 트롤을 위한 것입니다. 따라서 이름이 있는 모든 개체가 가능합니다.
나는 사용할 수있는 다른 것을 추가했습니다 - 4 개의 수평선으로 어떤 방향으로든 열고 닫을 수 있습니다 - 음, 트롤.
수평선은 트롤을 위한 것입니다. 따라서 이름이 있는 모든 개체가 가능합니다.