커뮤니티
매매 횟수요청
2018-04-02 12:31:01
257
글번호 117846
* 아래 매매식에서 당일 매매 회수를 2회로 제한해 주시면 고맙겠습니다.
즉 계속 매매 되더라구요......
하루에 두번만 매수 되게 부탁 드립니다.
if MarketPosition == 0 and c > ma(c,5) Then
buy("b");
if MarketPosition == 1 and C > EntryPrice*1.03 Then
ExitLong("bx");
if MarketPosition == 0 and
IsExitName("bx",1) == true Then
buy("bb",atlimit,ExitPrice(1)*0.98);
고맙 습니다.
답변 1
예스스탁 예스스탁 답변
2018-04-02 14:59:05
안녕하세요
예스스탁입니다.
var : t1(0),entry(0);
if bdate != bdate[1] Then
t1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-t1;
Else
entry = TotalTrades-t1+1;
if MarketPosition == 0 and c > ma(c,5) and entry < 2 Then
buy("b");
if MarketPosition == 1 and C > EntryPrice*1.03 Then
ExitLong("bx");
if MarketPosition == 0 and
IsExitName("bx",1) == true and
entry < 2 Then
buy("bb",atlimit,ExitPrice(1)*0.98);
즐거운 하루되세요
> 요타 님이 쓴 글입니다.
> 제목 : 매매 횟수요청
> * 아래 매매식에서 당일 매매 회수를 2회로 제한해 주시면 고맙겠습니다.
즉 계속 매매 되더라구요......
하루에 두번만 매수 되게 부탁 드립니다.
if MarketPosition == 0 and c > ma(c,5) Then
buy("b");
if MarketPosition == 1 and C > EntryPrice*1.03 Then
ExitLong("bx");
if MarketPosition == 0 and
IsExitName("bx",1) == true Then
buy("bb",atlimit,ExitPrice(1)*0.98);
고맙 습니다.