Information

Username: kanapon
Member since: 04 May 2019
Last login: 24 Aug 2023
Status: Active

Activity

Where Created Comments
Algorithms 0 4
Forum Topics 4 2
Jobs 0 0

Last Algorithm Comments

KA
kanapon · 5 years ago

got the answer, the parameter is control buy sell when there are no position.

if we need to control when there are position opened, need to adjust code as below 

 

Old

if (CountOfTradesOfType(TradeType.Buy) > 0)

New

if (CountOfTradesOfType(TradeType.Buy) > 0 && Buy)

 

KA
kanapon · 5 years ago

Now i have issue with this bot, same as username "9469cd97" post on 2015

i run this bot on VPS and on GBPUSD. start i open buy and sell and then the i have waiting 10 positions on buy so i stop buy by set parameter to only sell. (not buy positions remain, not close them)

anyway system still open buy when pips step is meet condition.

i even try to rerun ctrader and delete instance but issue still persist. so sad.

anyone know how to solve? 

KA
kanapon · 5 years ago
All thank you so much for your contribute to improve this bot Can anyone help me if my account had leverage 1:100 how can i backtest with this leverage value? Thanks