Forum

Function definition unexpected. help please

/* Hello to all Hope you had a good weekend. I study on my weekend, then tried a different approach. But I stalled out with error described as: '(' function definition unexpected. Same error for both user-defined function "Close_Open_Sell" and "Close_Open_Buy". I'll show the code below with

Trailing Stop Resolution??? Critic

It's about amonth or so, since I introduced this problem on a different thread. Thank you for the earlier constructive criticsand advise. It has finally come together and here it is, open for further critic. The code does perform trailing stop functions . It has the Lots Optimized, Calulates orders

Please Help, Trailing Stop

Hi to All Before I disclose the problem, I wish to thank WHRoeder for the help with this problem earkier in the, but the problem has not been solved. A disclosure: A code I have been working on, does work. It is for experimenting so please, use it as such. I brought this code to the forum last week

Trailing Stop Help

Hi You All Been working on a code where the Trailing Stop is not working. The code is built so that it will SELL only. The liquidation of positions is by trailing stop, or by a Moving Average cross, which ever occurs first. But the Traing Stop (TrailStop) is not recognized. Code is attached, but

Closing with Highest High/Lowest Low, help

Hi you all The code liquidates well with if (Open[ 1 ]>ma && Close[ 1 ]<ma) And also with if (dAsk < ma) But if I request a SELL order or BUY order to liquidate when Highest High or Lowest Low condition, the liquidation does not occur. Below is the block with the situation for ( int i= 0 ;i<

Function definiton unexpected, Help

Hello to all I have redone the code so as that it will only BUY. No sell actions except to liquidate the BUY positions. Sounded easy enough. Everything was going well until I got down to the iSignalClose(). The code is attached and if there is anyone who wishes to add or delete for improvement, your

Closing Problem, Help Please

Hello to All, Here I am with a code that works fine, but it is not closing properly. The closing strategy started with an idea for all positions to close if the price reached, 1*iATR, a signal for a profitable close. And if the price moved agaisnt the trade by, 2*iATR, a signal for a StopLoss. As I

function definition unexpected, Help

Hello to all I have eliminated all errors and warnings : ) with exception of the " function definition unexpected" grrrrrr Have a look at the code and see if you can resolve. The problem is where the code shows the 'int deinit ()' Thanks very much for having a look. Regards Huckleberry //--- input

Same code, but different reports, why?

Hello to all A code is backtested on two separate accounts. Both accounts are with the same broker. The history in the tools were updated on both accounts. The only diference between the two accounts is that one account is LIVE, the other is a DEMO, but the reports are different. The number of

Optimize question

Hello to all No programs will optimize. Even the default MACD Sample or the Moving Average will not optimize. When any program is backtested , the results appear not to come close to how they were backtested earlier. Prior to this problem, meaning backtesting and optimization worked fine, I had just