안녕하세요~~
아래수식의 청산방법을 2종류!로 부탁좀 드립니다
input : 단(50),중(150),장(1200),천(2000);
var : 단기(0),중기(0),구백(0),이천(0);
단기 = ma(c,단);
중기 = ma(c,중);
장기 = ma(c,장);
이천 = ma(c,천)
//////////////////////////////////////////////////////////////
if 중기 /장기 * 100 > 100.10 and
단기 > 중기[1300] and 이천 > 이천[200] Then buy("매수진");
if MarketPosition == 1 Then{
단기 < 중기[1300] and 이천 < 이천[200] Then exitlong("매수청산"); 을
매수신호(체결) 나온후~~~14봉이후부터 매수청산! 적용될수있도록 부탁
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if 중기 /장기 * 100 < 99.90 and
단기 < 중기[1300] and 이천 < 이천[200] Then Sell("매도진");
if MarketPosition == -1 Then{
단기 > 중기[1300] and 이천 > 이천[200] Then ExitShort("매도청산"); 을
매도신호(체결) 나온후~~~14봉이후부터 매도청산! 적용될수있도록 부탁
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
////////////////////////////////////////////////////////////////////
(2번째) 청산!질문
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if MarketPosition == 1 Then{
단기 < 중기[1300] and 이천 < 이천[200] Or
매수신호(체결) 나온후~~~1400봉이후까지 미청산때는
중기 /장기 * 100 > 99.50 Then exitlong("매수청");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if MarketPosition == -1 Then{
단기 > 중기[1300] and 이천 > 이천[200] Or
매도신호(체결) 나온후~~~1400봉이후까지 미청산때는
중기 /장기 * 100 < 100.50 Then exitlong("매도청산");
~~~부탁좀 드립니다~~
답변 1
예스스탁
예스스탁 답변
2020-07-13 17:37:55
안녕하세요
예스스탁입니다.
1
input : 단(50),중(150),장(1200),천(2000);
var : 단기(0),중기(0),구백(0),이천(0),장기(0);
단기 = ma(c,단);
중기 = ma(c,중);
장기 = ma(c,장);
이천 = ma(c,천);
if 중기 /장기 * 100 > 100.10 and
단기 > 중기[1300] and 이천 > 이천[200] Then buy("매수진");
if MarketPosition == 1 Then
{
if 단기 < 중기[1300] and 이천 < 이천[200] and barssinceentry >= 14 Then exitlong("매수청산");
}
if 중기 /장기 * 100 < 99.90 and
단기 < 중기[1300] and 이천 < 이천[200] Then Sell("매도진");
if MarketPosition == -1 Then
{
if 단기 > 중기[1300] and 이천 > 이천[200] and barssinceentry >= 14 Then ExitShort("매도청산");
}
2
if MarketPosition == 1 Then
{
if ( 단기 < 중기[1300] and 이천 < 이천[200]) or
(barssinceentry >= 1400 and 중기 /장기 * 100 > 99.50) Then exitlong("매수청");
}
if MarketPosition == -1 Then
{
if (단기 > 중기[1300] and 이천 > 이천[200]) or
(barssinceentry >= 1400 and 중기 /장기 * 100 < 100.50) Then exitshort("매도청");
}
즐거운 하루되세요
> 째일 님이 쓴 글입니다.
> 제목 : 질문부탁드립니다
> 안녕하세요~~
아래수식의 청산방법을 2종류!로 부탁좀 드립니다
input : 단(50),중(150),장(1200),천(2000);
var : 단기(0),중기(0),구백(0),이천(0);
단기 = ma(c,단);
중기 = ma(c,중);
장기 = ma(c,장);
이천 = ma(c,천)
//////////////////////////////////////////////////////////////
if 중기 /장기 * 100 > 100.10 and
단기 > 중기[1300] and 이천 > 이천[200] Then buy("매수진");
if MarketPosition == 1 Then{
단기 < 중기[1300] and 이천 < 이천[200] Then exitlong("매수청산"); 을
매수신호(체결) 나온후~~~14봉이후부터 매수청산! 적용될수있도록 부탁
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if 중기 /장기 * 100 < 99.90 and
단기 < 중기[1300] and 이천 < 이천[200] Then Sell("매도진");
if MarketPosition == -1 Then{
단기 > 중기[1300] and 이천 > 이천[200] Then ExitShort("매도청산"); 을
매도신호(체결) 나온후~~~14봉이후부터 매도청산! 적용될수있도록 부탁
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
////////////////////////////////////////////////////////////////////
(2번째) 청산!질문
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if MarketPosition == 1 Then{
단기 < 중기[1300] and 이천 < 이천[200] Or
매수신호(체결) 나온후~~~1400봉이후까지 미청산때는
중기 /장기 * 100 > 99.50 Then exitlong("매수청");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if MarketPosition == -1 Then{
단기 > 중기[1300] and 이천 > 이천[200] Or
매도신호(체결) 나온후~~~1400봉이후까지 미청산때는
중기 /장기 * 100 < 100.50 Then exitlong("매도청산");
~~~부탁좀 드립니다~~