안녕하세요~
마직막 줄에서 file end 에러가 나는 이유를 모르겠습니다
value1 = TRIX(5);
value2 = ema(value1,9);
if (sTime > 082000 and sTime < 170000) then
{
If MarketPosition == 0 and #1
crossup(value1,value2) Then
Buy();
SetStopLoss(20,PointStop);
SetStopProfittarget(20,PointStop);
If MarketPosition == 1 and #2
CrossDown (value1,value2) Then
SetStopLoss(20,PointStop);
SetStopProfittarget(20,PointStop);
답변 1
예스스탁
예스스탁 답변
2022-01-20 13:47:11
안녕하세요
예스스탁입니다.
if (sTime > 082000 and sTime < 170000) then
{
위와 같이 if 문에 {가 열려있습니다. }로 닫으셔야 합니다.
가장하단에 추가해 드립니다
value1 = TRIX(5);
value2 = ema(value1,9);
if (sTime > 082000 and sTime < 170000) then
{
If MarketPosition == 0 and #1
crossup(value1,value2) Then
Buy();
SetStopLoss(20,PointStop);
SetStopProfittarget(20,PointStop);
If MarketPosition == 1 and #2
CrossDown (value1,value2) Then
SetStopLoss(20,PointStop);
SetStopProfittarget(20,PointStop);
}
즐거운 하루되세요
> 코퍼 님이 쓴 글입니다.
> 제목 : 함수문의 드립니다
>
안녕하세요~
마직막 줄에서 file end 에러가 나는 이유를 모르겠습니다
value1 = TRIX(5);
value2 = ema(value1,9);
if (sTime > 082000 and sTime < 170000) then
{
If MarketPosition == 0 and #1
crossup(value1,value2) Then
Buy();
SetStopLoss(20,PointStop);
SetStopProfittarget(20,PointStop);
If MarketPosition == 1 and #2
CrossDown (value1,value2) Then
SetStopLoss(20,PointStop);
SetStopProfittarget(20,PointStop);