Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

OnTick exit if positions in profit
 Post subject: OnTick exit if positions in profit Post rating: 0   New post Posted: Thu 01 Aug, 2013, 08:38 

User rating: 0
Joined: Mon 19 Dec, 2011, 14:21
Posts: 12
Location: SwitzerlandSwitzerland
Hello,

I want to sell all open positions in profit if price touch any Daily pivot line. My strategy works OnBar and i use OnTick to exit. My code has no compilation error but doesn't exit the winning positions.
Any suggestion to correct the problem ?
Thanks for any help...


 
 Post subject: Re: OnTick exit if positions in profit Post rating: 0   New post Posted: Thu 01 Aug, 2013, 11:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider logging relevant values (i.e. indicators, bars, orders etc.) in the decision points in the code such that you see which execution paths get taken and why, see:
https://www.dukascopy.com/wiki/#IConsole/Logging_values


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com