예스스탁
예스스탁 답변
2021-03-03 13:35:01
안녕하세요
예스스탁입니다.
input : 목표틱1(20),수익틱1(3),목표틱2(30),수익틱2(5),목표틱3(300),수익틱3(20);
input : 목표틱4(300),목표틱5(200),목표틱6(50);
input : P1(60),연속봉수(4);
var : mav(0);
mav = ma(c,P1);
if MarketPosition == 1 Then
{
if Highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱1 and
Lowest(L,BarsSinceEntry) < EntryPrice Then
ExitLong("bx1",AtLimit,EntryPrice+수익틱1*3);
if Highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*목표틱2 Then
ExitLong("bx2",AtStop,EntryPrice+수익틱2*5);
if Highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*목표틱3 Then
ExitLong("bx3",AtStop,EntryPrice+수익틱3*20);
ExitLong("bx4",AtLimit,EntryPrice+목표틱4*300);
if EntryPrice < mav[BarsSinceEntry] Then
ExitLong("bx5",AtLimit,EntryPrice+목표틱5*200);
if EntryPrice > mav[BarsSinceEntry] Then
ExitLong("bx6",AtLimit,EntryPrice+목표틱6*50);
if CountIf(mav>mav[1],연속봉수) == 연속봉수 Then
ExitLong("bx7");
}
if MarketPosition == -1 Then
{
if lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱1 and
highest(H,BarsSinceEntry) > EntryPrice Then
ExitShort("sx1",AtLimit,EntryPrice-수익틱1*3);
if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*목표틱2 Then
ExitShort("sx2",AtStop,EntryPrice-수익틱2*5);
if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*목표틱3 Then
ExitShort("sx3",AtStop,EntryPrice-수익틱3*20);
ExitShort("sx4",AtLimit,EntryPrice-목표틱4*300);
if EntryPrice > mav[BarsSinceEntry] Then
ExitShort("sx5",AtLimit,EntryPrice-목표틱5*200);
if EntryPrice < mav[BarsSinceEntry] Then
ExitShort("sx6",AtLimit,EntryPrice-목표틱6*50);
if CountIf(mav<mav[1],연속봉수) == 연속봉수 Then
ExitShort("sx7");
}
즐거운 하루되세요
> kjdkdh 님이 쓴 글입니다.
> 제목 : 추가 식좀 부탁합니다
> 안녕하세요
추가 식좀 부탁합니다
매수 매도 진입청산 색상을 이용합니다
1 진입 해서 20틱 이상 수익이 발생하지 않고
손절은 되지 않았으나 진입 가격을 이탈하고 다시 회복하면 진입가 3틱 이상에서 청산
2 진입 해서 30틱 이상 수익이 발생하고 내려오면 진입가 5틱 이상에서 청산
3 진입 해서 60틱 이상 수익이 발생하고 내려오면 20틱 이상에서 청산
4 300틱 이상 수익나면 포지션 완전청산
5 특정이평선 (예 60이평선) 매수시 아래에 있으면 완전청산 200틱
매수시 위에 있으면 완전청산 50틱
6 특정이평선이 (예 60이평선) 연속 4봉 올라가면 손절
반대식도 부탁합니다
이 기능들은 변수 에서 처리 할수 있겠금 부탁합니다