Hey. I haven't done C++ related coding in awhile and i'm stuck on an error: "'\end of program' - unbalanced left parenthesis". I can't for the life of me find this error. The code's attached.
I'm doing a study into random trading. At first this EA just put in random trades, buy or sell, with 50/50 probability in each direction. I was actually surprised by those results. I did a frankenstein on that EA and got this EA. This EA has those directional probabilities altered by the level of a stoch oscillator. If i did it right, when the stoch's at 80, there should only be a 20% chance of buying. It's simple enough, but once we figure out this problem, i'll be able to move onto higher level concepts. I'll probably post the best EA when i'm done.
Thanks.
I'm doing a study into random trading. At first this EA just put in random trades, buy or sell, with 50/50 probability in each direction. I was actually surprised by those results. I did a frankenstein on that EA and got this EA. This EA has those directional probabilities altered by the level of a stoch oscillator. If i did it right, when the stoch's at 80, there should only be a 20% chance of buying. It's simple enough, but once we figure out this problem, i'll be able to move onto higher level concepts. I'll probably post the best EA when i'm done.
Thanks.
Attached File(s)
Random.mq4
3 KB
|
303 downloads