커뮤니티
수식 문의드립니다
2014-04-17 12:32:06
185
글번호 74504
1.
if ((data2(c) >= data2(c[1])+1000) and Data4(C>O) and data5(c>0) and data6(c<0))
or ((bids >= bids[1]+1200) and Data4(C>O) and data5(c>0) and data6(c<0)) then
buy("단타매수1");
if ((data3(c) >= data3(c[1])+1000) and Data4(C<O) and data5(c<0) and data6(c>0))
or ((Asks >= asks[1]+1200) and Data4(C<O) and data5(c<0) and data6(c>0)) then
Sell("단타매도1");
SetStopProfittarget(PriceScale*9,PointStop);
SetStopLoss(PriceScale*8,PointStop);
SetStopEndofday(145000);
2.
input : ATRP(20),ATRS(3);
var : HH(0),LL(0);
if stime < 93000 Then{
HH = dayhigh;
LL = daylow;
}
if (stime >= 93000 and stime < 110000) or (stime >= 123000 and stime < 133000) Then{
if crossup(c,HH) and data5(c > 0) and Data6(C < 0) then
buy("b1");
if CrossDown(c,LL) and Data5(c < 0) and Data6(C > 0) then
sell("s1");
}
if MarketPosition == 1 Then
ExitLong("bx",AtStop,highest(h,BarsSinceEntry)-ATR(ATRP)*ATRS);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,Lowest(l,BarsSinceEntry)+ATR(ATRP)*ATRS);
SetStopLoss(0.3,PointStop);
SetStopEndofday(145000);
위 두식 합성 부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2014-04-17 16:04:32
안녕하세요
예스스탁입니다.
input : ATRP(20),ATRS(3);
var : HH(0),LL(0);
if stime < 93000 Then{
HH = dayhigh;
LL = daylow;
}
if (stime >= 93000 and stime < 110000) or (stime >= 123000 and stime < 133000) Then{
if crossup(c,HH) and data5(c > 0) and Data6(C < 0) then
buy("b1");
if CrossDown(c,LL) and Data5(c < 0) and Data6(C > 0) then
sell("s1");
}
if ((data2(c) >= data2(c[1])+1000) and Data4(C>O) and data5(c>0) and data6(c<0))
or ((bids >= bids[1]+1200) and Data4(C>O) and data5(c>0) and data6(c<0)) then
buy("단타매수1");
if ((data3(c) >= data3(c[1])+1000) and Data4(C<O) and data5(c<0) and data6(c>0))
or ((Asks >= asks[1]+1200) and Data4(C<O) and data5(c<0) and data6(c>0)) then
Sell("단타매도1");
if MarketPosition == 1 and IsEntryName("b1") == True Then{
ExitLong("BL1",atlimit,EntryPrice-0.3);
}
if MarketPosition == -1 and IsEntryName("s1") == True Then{
ExitShort("SL1",AtStop,EntryPrice+0.3);
}
if MarketPosition == 1 and IsEntryName("단타매수1") == True Then{
ExitLong("bx2",AtStop,highest(h,BarsSinceEntry)-ATR(ATRP)*ATRS);
ExitLong("BP2",atlimit,EntryPrice+PriceScale*9);
ExitLong("BL2",atlimit,EntryPrice-PriceScale*8);
}
if MarketPosition == -1 and IsEntryName("단타매도1") == True Then{
ExitShort("sx2",AtStop,Lowest(l,BarsSinceEntry)+ATR(ATRP)*ATRS);
ExitShort("SP2",Atlimit,EntryPrice-PriceScale*9);
ExitShort("SL2",AtStop,EntryPrice+PriceScale*8);
}
SetStopEndofday(145000);
즐거운 하루되세요
> 린포체 님이 쓴 글입니다.
> 제목 : 수식 문의드립니다
> 1.
if ((data2(c) >= data2(c[1])+1000) and Data4(C>O) and data5(c>0) and data6(c<0))
or ((bids >= bids[1]+1200) and Data4(C>O) and data5(c>0) and data6(c<0)) then
buy("단타매수1");
if ((data3(c) >= data3(c[1])+1000) and Data4(C<O) and data5(c<0) and data6(c>0))
or ((Asks >= asks[1]+1200) and Data4(C<O) and data5(c<0) and data6(c>0)) then
Sell("단타매도1");
SetStopProfittarget(PriceScale*9,PointStop);
SetStopLoss(PriceScale*8,PointStop);
SetStopEndofday(145000);
2.
input : ATRP(20),ATRS(3);
var : HH(0),LL(0);
if stime < 93000 Then{
HH = dayhigh;
LL = daylow;
}
if (stime >= 93000 and stime < 110000) or (stime >= 123000 and stime < 133000) Then{
if crossup(c,HH) and data5(c > 0) and Data6(C < 0) then
buy("b1");
if CrossDown(c,LL) and Data5(c < 0) and Data6(C > 0) then
sell("s1");
}
if MarketPosition == 1 Then
ExitLong("bx",AtStop,highest(h,BarsSinceEntry)-ATR(ATRP)*ATRS);
if MarketPosition == -1 Then
ExitShort("sx",AtStop,Lowest(l,BarsSinceEntry)+ATR(ATRP)*ATRS);
SetStopLoss(0.3,PointStop);
SetStopEndofday(145000);
위 두식 합성 부탁드립니다.
이전글