PDA

View Full Version : How to programme proven Entry / Exit on Stop


commanderco
21st September 2004, 12:40 PM
I am a Currency CME Day Trader converting to EOD swingtrading.
Can someone "kickstart" me to programme my following proven trading play,
as I am struggling.
LONG SIDE
entrytrigger:= H crosses yesterday´s TradingLine HIGH
( TLH= valuewhen(1,fml´n,H)
entryprice:= ref(TLH,-1)
exittrigger:= The OPEN 2 days after the entry
exitprice:=ref(O,2);

Also, it is necessary to re enter the market on the same day as the exit on Open. In fact, depending on the postion of the TLH & TLL, I sometimes
use them as rollover stops instead of exiting on the Open.

ProtectiveStop: A deep stop need only be applied from day2 of the trade
to cover communication blackouts
SHORT SIDE
The Short side is simply the reverse of the above.
Many thanks

Jose
23rd September 2004, 11:52 AM
Commanderco, it's better if you post future MetaStock queries in the MetaStock section of this forum - this way I won't miss them.

With regards to your present query, you would need to fully disclose your code ("fml´n"?) before I would even attempt to code a solution. It's not easy to do develop working code that cannot be tested.

One last point: post one query at a time - too many at once tends to confuse.

jose '-)