|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
|
|
LinkBack | Thread Tools |
|
|
|||
|
|||
|
Hi
I am trying trouble with the following piece of code. .. static double firstbuysl, firstsellsl, firstbuyprice, firstsellprice; static double mylasttradeprice = 0; double sarCurrent, sarPrevious, momCurrent, momPrevious,x,y,t; ... x = mylasttradeprice - (Bid + Ask)/2; y = MathAbs(x); t= (trailingStop/2)*Point; if(y>t) { .... /* determine how to trade */ .. if trailingstop = 30 then when the EA starts, I thought y would be greater then t and I would enter the section to 'determine how to trade' - but its not working. |
|
|
|||
|
|||
|
thanks Coders' Guru
Thanks
I put the EA that uses this up at http://www.forex-tsd.com/showthread.php?p=1698#post1698 it is serously not working - I don't quite know what is wrong - I will keep working on it. Thanks Last edited by cardio : 11-09-2005 at 06:05 PM. |
| Thread Tools | |
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bollinger Static MA | thesource | Indicators - Metatrader 4 | 12 | 03-08-2007 06:01 AM |
| how to define a static var in MT3.86 | lamanosky | Indicators - Metatrader 3 | 0 | 11-18-2006 12:43 PM |
| Variable Stoploss | gkozlyk | Expert Advisors - Metatrader 4 | 2 | 06-06-2006 12:34 PM |