I have a scan (LONGENTRY) which places a signal marker on a chart. I do not want the signal to fire if a trade is already in progress but I do want the signal marker to appear.
I have therefore created a copy of LONGENTRY (LONGENTRY RT) and added 'and V#1 = 0'. (V#1 is defined as 0 = no active trade, 1 = active trade). LONGENTRY RT is linked to a signal action. A 'confirm with' scan sets V#1 = 1, sets other V# variables with OHLC at entry and sets V#9 = [stop value]. The signal action also generates the entry.oif with V#9 embedded in it.
Will a 'confirm with' scan set V#9 before entry.oif is generated or should the 'confirm with' logic happen in the signal?
When the trade is closed I need to set V#1 = 0. Doing this from the PUF seems to make more sense than doing it from IRT. Has anyone found a way to to do this?
Thanks
James
Comment