커뮤니티

문의

프로필 이미지
좌오비우오비
2020-10-27 12:20:27
694
글번호 143431
답변완료
buy 진입 경우 청산 시뮬레이션이 작동되는데 sell 진입 경우는 청산 시뮬레이션에 변화가 없습니다. 수식이 맞는지 확인바랍니다. ********************************************************************************* if MarketPosition == 1 and IsEntryName("b") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(buyLOSS,PointStop); SetStopProfittarget(buyLIMIT,PointStop); ExitLong("b트레일링",AtStop,highest(h,BarsSinceEntry)-buy트레일링); SetStopTrailing(buyTRAIL,buy최소수익,PointStop); SetStopInactivity(buy최소가격변화포인트,buy봉갯수,PointStop); } if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); }
시스템
답변 4
프로필 이미지

예스스탁 예스스탁 답변

2020-10-28 09:55:12

안녕하세요 예스스탁입니다. 강제청산 함수는 한번 셋팅이 되면 다음 if조건이 만족하기 전에 해당 설정이 유지됩니다. 각 조건이 부합하지 않을 때는 해제되게 내용을 추가혀셔야 합니다. if MarketPosition == 1 and IsEntryName("b") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(buyLOSS,PointStop); SetStopProfittarget(buyLIMIT,PointStop); ExitLong("b트레일링",AtStop,highest(h,BarsSinceEntry)-buy트레일링); SetStopTrailing(buyTRAIL,buy최소수익,PointStop); SetStopInactivity(buy최소가격변화포인트,buy봉갯수,PointStop); } Else if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); } Else { SetStopLoss(0); SetStopProfittarget(0); SetStopTrailing(0); SetStopInactivity(0,0); } 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : 문의 > buy 진입 경우 청산 시뮬레이션이 작동되는데 sell 진입 경우는 청산 시뮬레이션에 변화가 없습니다. 수식이 맞는지 확인바랍니다. ********************************************************************************* if MarketPosition == 1 and IsEntryName("b") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(buyLOSS,PointStop); SetStopProfittarget(buyLIMIT,PointStop); ExitLong("b트레일링",AtStop,highest(h,BarsSinceEntry)-buy트레일링); SetStopTrailing(buyTRAIL,buy최소수익,PointStop); SetStopInactivity(buy최소가격변화포인트,buy봉갯수,PointStop); } if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); }
프로필 이미지

좌오비우오비

2020-10-28 11:04:11

질문을 다시 드립니다. sell 전용 수식이라면 아래 수식은 작동될 수 있는 수식인가요? sell 전용 수식에서 작동되지 않아서 질문드렸던 것입니다. if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); } > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 강제청산 함수는 한번 셋팅이 되면 다음 if조건이 만족하기 전에 해당 설정이 유지됩니다. 각 조건이 부합하지 않을 때는 해제되게 내용을 추가혀셔야 합니다. if MarketPosition == 1 and IsEntryName("b") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(buyLOSS,PointStop); SetStopProfittarget(buyLIMIT,PointStop); ExitLong("b트레일링",AtStop,highest(h,BarsSinceEntry)-buy트레일링); SetStopTrailing(buyTRAIL,buy최소수익,PointStop); SetStopInactivity(buy최소가격변화포인트,buy봉갯수,PointStop); } Else if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); } Else { SetStopLoss(0); SetStopProfittarget(0); SetStopTrailing(0); SetStopInactivity(0,0); } 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : 문의 > buy 진입 경우 청산 시뮬레이션이 작동되는데 sell 진입 경우는 청산 시뮬레이션에 변화가 없습니다. 수식이 맞는지 확인바랍니다. ********************************************************************************* if MarketPosition == 1 and IsEntryName("b") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(buyLOSS,PointStop); SetStopProfittarget(buyLIMIT,PointStop); ExitLong("b트레일링",AtStop,highest(h,BarsSinceEntry)-buy트레일링); SetStopTrailing(buyTRAIL,buy최소수익,PointStop); SetStopInactivity(buy최소가격변화포인트,buy봉갯수,PointStop); } if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); }
프로필 이미지

예스스탁 예스스탁 답변

2020-10-28 11:12:49

안녕하세요 예스스탁입니다. 매도전용 수식에도 조건만족하지 않으면 초기화하는 내용을 넣으셔야 합니다. if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); } Else { SetStopLoss(0); SetStopProfittarget(0); SetStopTrailing(0); SetStopInactivity(0,0); } 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : Re : Re : 문의 > 질문을 다시 드립니다. sell 전용 수식이라면 아래 수식은 작동될 수 있는 수식인가요? sell 전용 수식에서 작동되지 않아서 질문드렸던 것입니다. if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); } > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 강제청산 함수는 한번 셋팅이 되면 다음 if조건이 만족하기 전에 해당 설정이 유지됩니다. 각 조건이 부합하지 않을 때는 해제되게 내용을 추가혀셔야 합니다. if MarketPosition == 1 and IsEntryName("b") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(buyLOSS,PointStop); SetStopProfittarget(buyLIMIT,PointStop); ExitLong("b트레일링",AtStop,highest(h,BarsSinceEntry)-buy트레일링); SetStopTrailing(buyTRAIL,buy최소수익,PointStop); SetStopInactivity(buy최소가격변화포인트,buy봉갯수,PointStop); } Else if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); } Else { SetStopLoss(0); SetStopProfittarget(0); SetStopTrailing(0); SetStopInactivity(0,0); } 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : 문의 > buy 진입 경우 청산 시뮬레이션이 작동되는데 sell 진입 경우는 청산 시뮬레이션에 변화가 없습니다. 수식이 맞는지 확인바랍니다. ********************************************************************************* if MarketPosition == 1 and IsEntryName("b") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(buyLOSS,PointStop); SetStopProfittarget(buyLIMIT,PointStop); ExitLong("b트레일링",AtStop,highest(h,BarsSinceEntry)-buy트레일링); SetStopTrailing(buyTRAIL,buy최소수익,PointStop); SetStopInactivity(buy최소가격변화포인트,buy봉갯수,PointStop); } if MarketPosition == -1 and IsEntryName("s") == true and EntryTime(0) >= ex시간1 and EntryTime(0) < ex시간2 and (H[BarsSinceEntry]-L[BarsSinceEntry]) >= 로우 and (H[BarsSinceEntry]-L[BarsSinceEntry]) <= 하이 Then { SetStopLoss(sellLOSS,PointStop); SetStopProfittarget(sellLimit,PointStop); ExitShort("s트레일링",AtStop,Lowest(l,BarsSinceEntry)+sell트레일링); SetStopTrailing(sellTRAIL,sell최소수익,PointStop); SetStopInactivity(sell최소가격변화포인트,sell봉갯수,PointStop); }
프로필 이미지

좌오비우오비

2020-10-28 12:00:56

좌오비우오비 님에 의해 삭제된 답변입니다.