커뮤니티
재매수 수식이 좀 이해가 안돼서 질문드립니다.
2012-12-11 13:20:40
291
글번호 57218
if marketposition == 0 then{
buy("bb1",atlimit,매수1차,mae1);
}
if marketposition == 1 then {
buy("b2",atlimit,매수2차,mae2);
condition3 = true;
}
if marketposition == 1 then {
buy("b3",atlimit,매수3차,mae3);
}
if marketposition == 1 then {
buy("b4",atlimit,매수4차,mae4);
}
if MarketPosition == 1 Then{
if CurrentEntries == 1 Then
exitlong("bx1",Atlimit,매수1차*1.1);
if CurrentEntries == 2 Then
exitlong("bx2",Atlimit,매수2차*1.1);
if CurrentEntries == 3 Then
exitlong("bx3",Atlimit,매수3차*1.1);
if CurrentEntries == 4 Then
exitlong("bx4",Atlimit,매수4차*1.1);
}
if MarketPosition == 0 and TotalTrades >= 1 Then{
buy("rebuy1",atlimit,ExitPrice(1)*0.95);
}
다시한번 궁금한것 있어 질문드립니다.
위수식에서 1차~4차매수사이에서 10%상승하면 일괄매도 적용확인 되었습니다.
일괄매도후 마지막 매수에서 -5%가격대에서 매수되는것도 확인이 되었는데요..
rebuy1매수 까지 확인되구요..,.
bb1,b2,b3,b4 도 재매수 되고 있는데요..
일단 일괄매도된후에는 bb1, b2, b3, b4는 재매수를 원치않습니다.
그런수식 부탁드리구요.
두번째는 일괄매도된후 bb1과 b2까지는 재매수를 허락하고 b3,b4 는 재매수 안되게
하는 수식도 같이부탁드립니다.
이번수식에서 좋은수식을 배우게 되어서 참 감사하구요..
조금 제가 이해안되는 부분이 있어 다시한번 질문드리게 되었습니다.
늘 애써주셔서 감사합니다.
답변 1
예스스탁 예스스탁 답변
2012-12-11 14:36:20
안녕하세요
예스스탁입니다.
1. 일괄청산(bx1,bx2,bx3,bx4) 후에는
rebuy는 발생하고
bb1,b2,b3,b4는 진입하지 않는 수식
if marketposition == 0 and
(IsExitName("bx1",1) == False or
IsExitName("bx2",1) == False or
IsExitName("bx3",1) == False or
IsExitName("bx4",1) == False) then{
if H < mae1 Then
buy("bb1",atlimit,매수1차,mae1);
}
#bb1 매수후 추가진입
if marketposition == 1 and IsEntryName("bb1") == true then {
buy("b2",atlimit,매수2차,mae2);
condition3 = true;
}
if marketposition == 1 and IsEntryName("bb1") == true then {
buy("b3",atlimit,매수3차,mae3);
}
if marketposition == 1 and IsEntryName("bb1") == true then {
buy("b4",atlimit,매수4차,mae4);
}
if MarketPosition == 1 Then{
if CurrentEntries == 1 Then
exitlong("bx1",Atlimit,매수1차*1.1);
if CurrentEntries == 2 Then
exitlong("bx2",Atlimit,매수2차*1.1);
if CurrentEntries == 3 Then
exitlong("bx3",Atlimit,매수3차*1.1);
if CurrentEntries == 4 Then
exitlong("bx4",Atlimit,매수4차*1.1);
}
if MarketPosition == 0 and TotalTrades >= 1 Then{
buy("rebuy1",atlimit,ExitPrice(1)*0.95);
}
2. 일괄청산(bx1,bx2,bx3,bx4) 후에는
bb1,b2,b3,b4는 진입하지 않는 수식
rebuy는 발생하고 bb1,bb2까지는 재매수 가능
if marketposition == 0 and TotalTrades == 0 then{
if H < mae1 Then
buy("bb1",atlimit,매수1차,mae1);
}
#bb1 매수후 추가진입
if marketposition == 1 and IsEntryName("bb1") == true then {
buy("b2",atlimit,매수2차,mae2);
condition3 = true;
}
if marketposition == 1 and IsEntryName("bb1") == true then {
buy("b3",atlimit,매수3차,mae3);
}
if marketposition == 1 and IsEntryName("bb1") == true then {
buy("b4",atlimit,매수4차,mae4);
}
if MarketPosition == 1 Then{
if CurrentEntries == 1 Then
exitlong("bx1",Atlimit,매수1차*1.1);
if CurrentEntries == 2 Then
exitlong("bx2",Atlimit,매수2차*1.1);
if CurrentEntries == 3 Then
exitlong("bx3",Atlimit,매수3차*1.1);
if CurrentEntries == 4 Then
exitlong("bx4",Atlimit,매수4차*1.1);
}
#일괄청산 후 발생할 수 있는 신호
if MarketPosition == 0 and TotalTrades >= 1 Then{
buy("rebuy1",atlimit,ExitPrice(1)*0.95);
}
if MarketPosition == 1 and CurrentEntries == 1 and TotalTrades >= 1 Then{
if H < mae1 Then
buy("rebuy2",atlimit,매수1차,mae1);
}
if MarketPosition == 1 and CurrentEntries == 2 and TotalTrades >= 1 Then{
buy("rebuy3",atlimit,매수2차,mae2);
}
즐거운 하루되세요
> 신나는파파 님이 쓴 글입니다.
> 제목 : 재매수 수식이 좀 이해가 안돼서 질문드립니다.
> if marketposition == 0 then{
buy("bb1",atlimit,매수1차,mae1);
}
if marketposition == 1 then {
buy("b2",atlimit,매수2차,mae2);
condition3 = true;
}
if marketposition == 1 then {
buy("b3",atlimit,매수3차,mae3);
}
if marketposition == 1 then {
buy("b4",atlimit,매수4차,mae4);
}
if MarketPosition == 1 Then{
if CurrentEntries == 1 Then
exitlong("bx1",Atlimit,매수1차*1.1);
if CurrentEntries == 2 Then
exitlong("bx2",Atlimit,매수2차*1.1);
if CurrentEntries == 3 Then
exitlong("bx3",Atlimit,매수3차*1.1);
if CurrentEntries == 4 Then
exitlong("bx4",Atlimit,매수4차*1.1);
}
if MarketPosition == 0 and TotalTrades >= 1 Then{
buy("rebuy1",atlimit,ExitPrice(1)*0.95);
}
다시한번 궁금한것 있어 질문드립니다.
위수식에서 1차~4차매수사이에서 10%상승하면 일괄매도 적용확인 되었습니다.
일괄매도후 마지막 매수에서 -5%가격대에서 매수되는것도 확인이 되었는데요..
rebuy1매수 까지 확인되구요..,.
bb1,b2,b3,b4 도 재매수 되고 있는데요..
일단 일괄매도된후에는 bb1, b2, b3, b4는 재매수를 원치않습니다.
그런수식 부탁드리구요.
두번째는 일괄매도된후 bb1과 b2까지는 재매수를 허락하고 b3,b4 는 재매수 안되게
하는 수식도 같이부탁드립니다.
이번수식에서 좋은수식을 배우게 되어서 참 감사하구요..
조금 제가 이해안되는 부분이 있어 다시한번 질문드리게 되었습니다.
늘 애써주셔서 감사합니다.