Home    |    Trading Alchemy Manual    |    Alchemy Functions Index

Alchemy2LineCross (Function)

Alchemy2LineCross is a multiple-output function that returns different values based on the relation between 2 lines.  The value of the slow line is passed by reference back to the variable oEntryLimit when the function returns 2 or -2.  The function returns 1 when the fast line crosses over the slow line by less than the distance as specified by the input Min Pen.  The function returns 2 when the fast line crosses over the slow line by a minimum distance as specified by the input Min Pen.  The function returns 3 when the fast line has crossed over the slow line by a minimum distance as specified by the input Min Pen and price retraced back down to the slow line.  The function returns -1 when the fast line crosses under the slow line by less than the distance as specified by the input Min Pen.  The function returns -2 when the fast line crosses under the slow line by a minimum distance as specified by the input Min Pen.  The function returns -3 when the fast line has crossed under the slow line by a minimum distance as specified by the input Min Pen and price retraced back up to the slow line.

Alchemy2LineCross (FastAvg,SlowAvg,MinPen,oEntryLimit)

Parameters

 

FastAvg

Specifies the average for the fast line.

SlowAvg

Specifies the average for the slow line.

MinPen

Specifies the minimum required distance for the fast line to cross through the slow line in order to return a cross value of 2 or -2.

oEntryLimit Returns the value of the slow line when the function returns 2 or -2.

 

Returns

Alchemy2LineCross returns 1 when the fast line crosses over the slow line by less than the distance as specified by the input Min Pen.  The function returns 2 when the fast line crosses over the slow line by a minimum distance as specified by the input Min Pen.  The function returns 3 when the fast line has crossed over the slow line by a minimum distance as specified by the input Min Pen and price retraced back down to the slow line.  The function returns -1 when the fast line crosses under the slow line by less than the distance as specified by the input Min Pen.  The function returns -2 when the fast line crosses under the slow line by a minimum distance as specified by the input Min Pen.  The function returns -3 when the fast line has crossed under the slow line by a minimum distance as specified by the input Min Pen and price retraced back up to the slow line.

Home    |    Trading Alchemy Manual    |    Alchemy Functions Index