Quote:
|
Originally Posted by Aaragorn
you know your really are a genius  and like most geniuses you leave just enough gaps in your suggestions to the common folk to leave us puzzling...
So the puzzlement is first...where do I look for this statement? the only place I see the profit variable is in this plain vanilla CloseOrder() that you made before...which I think I almost understand now btw. I wouldn't mind seeing a version of that function used to turn the trailing stop on or to tighten it in steps at specified times.
but getting back to this...the second puzzlement is the 'start' specifed...that would just be the current price level when the thing triggers. or would it? hum...
i like the idea of tightening the trailing near the lower tolerance extreme and letting it trail wider if it's away from the tolerance edge.
what function calls the current price? is that just point()? maybe something with the orderprofit()???hum
|
I am not a genius by any stretch of imagination. I can as well modify a trailingstop routine and give it to you, but then you won't learn. My intention all along is to force you to learn. That is the way I learnt and that is the way I want to help others... really help themselves

Remember the saying about giving a fish and showing how to fish?
You should check the code, not closeall, but your code where the trailingstop method is implemented. Study it and it will scream back to you on how to modify it.