이동 평균 전문가! - 페이지 2

 
lomme:
3 SL 연속 안타를 쳤기 때문에 이제 당신은 사라졌습니다. 카지노에서 도박을 하는 것과 같은 실제 돈으로.

3SL은 어디있나요?

 

성명 업데이트!

현상이 아닐까 !

4시간 만에 100달러에서 315달러 로!

파일:
screen.jpg  131 kb
 
codersguru:
3SL은 어디있나요?

...앞으로, 기다립니다.

 

성명 업데이트!

내 이익은 144 로 떨어졌습니다. , 지금 수익보호 코드를 작성하고 있어요!

파일:
 

언제나처럼

언제나 그렇듯이

내 EA의 예를 들 수 있는 것처럼

시간 기능을 사용하고 이익을 보호하는 것이 좋습니다. 시간 기능 을 사용하는 것이 좋습니다.

나는 이익이 이제 끝났다고 생각한다

 

이익 수호자!

이것은 내 이익 보호기 코드입니다.

extern bool ProtectProfit= true;

extern double ProfitToProtect = 150;

int start()

{

...

if(ProtectProfit)

ProfitProtect(ProfitToProtect);

....

}

void ProfitProtect(double profit)

{

int total = OrdersTotal();

double MyCurrentProfit=0;

for (int cnt = 0 ; cnt < total ; cnt++)

{

OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);

if (OrderMagicNumber() == MagicNumber)

MyCurrentProfit += OrderProfit();

}

Print("My Current Profit is : " + DoubleToStr(MyCurrentProfit,2) + " While My Profit Target is " + DoubleToStr(profit,2));

if(MyCurrentProfit>=profit)

CloseAll();

}

void CloseAll()

{

int total = OrdersTotal();

for (int cnt = 0 ; cnt < total ; cnt++)

{

OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);

if (OrderMagicNumber() == MagicNumber)

if(OrderType()==OP_BUY)

OrderClose(OrderTicket(),OrderLots(),Bid,Slippage,Violet);

if(OrderType()==OP_SELL)

OrderClose(OrderTicket(),OrderLots(),Ask,Slippage,Violet);

}

}
 

손실 수호자!

lomme:
...앞으로, 기다립니다.

Loss Protector 도 쓸 수 있습니다!

 
mj10:
언제나 그렇듯이

내 EA의 예를 들 수 있는 것처럼

시간 기능을 사용하고 이익을 보호하는 것이 좋습니다. 시간 기능을 사용하는 것이 좋습니다.

나는 이익이 이제 끝났다고 생각한다

그걸 위해 울지마 , 그것이 바로 거래이기 때문입니다!

최대한 빨리 이익 을 얻고 손실을 막으십시오!

 
codersguru:
이것은 내 이익 보호기 코드입니다.
extern bool ProtectProfit= true;

extern double ProfitToProtect = 150;

int start()

{

...

if(ProtectProfit)

ProfitProtect(ProfitToProtect);

....

}

void ProfitProtect(double profit)

{

int total = OrdersTotal();

double MyCurrentProfit=0;

for (int cnt = 0 ; cnt < total ; cnt++)

{

OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);

if (OrderMagicNumber() == MagicNumber)

MyCurrentProfit += OrderProfit();

}

Print("My Current Profit is : " + DoubleToStr(MyCurrentProfit,2) + " While My Profit Target is " + DoubleToStr(profit,2));

if(MyCurrentProfit>=profit)

CloseAll();

}

void CloseAll()

{

int total = OrdersTotal();

for (int cnt = 0 ; cnt < total ; cnt++)

{

OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);

if (OrderMagicNumber() == MagicNumber)

if(OrderType()==OP_BUY)

OrderClose(OrderTicket(),OrderLots(),Bid,Slippage,Violet);

if(OrderType()==OP_SELL)

OrderClose(OrderTicket(),OrderLots(),Ask,Slippage,Violet);

}

}

나는 이익 보호 수준을 150USD로 설정했으며 (ojala) 얻을 것입니다!

5 시간에 100USD에서 150USD 는 ??? 뭐라고요?

 

안녕하세요 codersguru, 간단한 질문입니다. 함수 에서 MagicNumber 변수를 어떻게 정의합니까? 내 말은 일종의 전역 변수 정의입니까? 미리 감사합니다