Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
write technical indicators to CSV when taking a trade http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=77&t=57006 |
Page 1 of 1 |
Author: | wienbej [ Tue 23 Apr, 2019, 13:22 ] |
Post subject: | write technical indicators to CSV when taking a trade |
Dear Support, I am trying to write various technical indicators to csv file, when I take a trade (to analyse correlation) I use this code in the onBar Function if (bidPrice < prevWeekLow) { found on this strategy-api page: https://www.dukascopy.com/wiki/en/devel ... ars-in-csv This, however, prints the indicators to CSV file for each bar, and not - as intended - only when a trade is taken. Can you guide me to a functional solution? It would be helpful if the code also prints the result of the trade (open, close, profit in Pips) at the close of that trade |
Page 1 of 1 |