답변 고맙습니다.
진입 수량을 세팅하는 수식을 추가해주세요
b1 2개
bb2 3개
bb3 4개
****************************************************************************************
안녕하세요
예스스탁입니다.
var : BH(0),SL(0);
if MarketPosition <= 0 and 첫매수진입조건 Then
Buy("b1");
if MarketPosition == 1 and IsEntryName("b1",0) == true Then
{
BH = Highest(H,BarsSinceEntry);
if CurrentContracts > CurrentContracts[1] Then
Condition1 = False;
if BH > BH[1] Then
Condition1 = true;
if MaxEntries == 1 and Condition1 == true Then
Buy("bb2",AtLimit,BH-0.5);
if MaxEntries == 2 and Condition1 == true Then
Buy("bb3",AtLimit,BH-0.6);
}
즐거운 하루되세요
답변 1
예스스탁
예스스탁 답변
2021-02-03 14:20:22
안녕하세요
예스스탁입니다.
input : v1(2),v2(3),v3(4);
var : BH(0),SL(0);
if MarketPosition <= 0 and 첫매수진입조건 Then
Buy("b1",OnClose,DEF,v1);
if MarketPosition == 1 and IsEntryName("b1",0) == true Then
{
BH = Highest(H,BarsSinceEntry);
if CurrentContracts > CurrentContracts[1] Then
Condition1 = False;
if BH > BH[1] Then
Condition1 = true;
if MaxEntries == 1 and Condition1 == true Then
Buy("bb2",AtLimit,BH-0.5,V2);
if MaxEntries == 2 and Condition1 == true Then
Buy("bb3",AtLimit,BH-0.6,V3);
}
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 문의
> 답변 고맙습니다.
진입 수량을 세팅하는 수식을 추가해주세요
b1 2개
bb2 3개
bb3 4개
****************************************************************************************
안녕하세요
예스스탁입니다.
var : BH(0),SL(0);
if MarketPosition <= 0 and 첫매수진입조건 Then
Buy("b1");
if MarketPosition == 1 and IsEntryName("b1",0) == true Then
{
BH = Highest(H,BarsSinceEntry);
if CurrentContracts > CurrentContracts[1] Then
Condition1 = False;
if BH > BH[1] Then
Condition1 = true;
if MaxEntries == 1 and Condition1 == true Then
Buy("bb2",AtLimit,BH-0.5);
if MaxEntries == 2 and Condition1 == true Then
Buy("bb3",AtLimit,BH-0.6);
}
즐거운 하루되세요