Vars :
sell_price( 100 ),
Buy_price( 100 );
Params :
Profit_Target( 100 ),
Stop_Loss( 100 );
If c < Buy_price Then
Begin
Buy("Buy");
End;
If c > Sell_price Then
Begin
Sell("Sell");
End;
SetStopProfitTarget( Profit_Target * pricescale );
SetStopLoss( Stop_Loss * pricescale );
답변 1
예스스탁
예스스탁 답변
2023-01-02 15:16:26
안녕하세요.
예스스탁 입니다.
Input : Profit_Target(100), Stop_Loss(100);
Var : sell_price(100), Buy_price(100);
If C < Buy_price Then
{
Buy("Buy");
}
If C > Sell_price Then
{
Sell("Sell");
}
SetStopProfitTarget( Profit_Target * pricescale, PointStop );
SetStopLoss( Stop_Loss * pricescale, PointStop );
즐거운 하루 보내세요!
> 바둑이 님이 쓴 글입니다.
> 제목 : 예스랭귀지로 변환 부탁드립니다.
> Vars :
sell_price( 100 ),
Buy_price( 100 );
Params :
Profit_Target( 100 ),
Stop_Loss( 100 );
If c < Buy_price Then
Begin
Buy("Buy");
End;
If c > Sell_price Then
Begin
Sell("Sell");
End;
SetStopProfitTarget( Profit_Target * pricescale );
SetStopLoss( Stop_Loss * pricescale );