Home    |    Trading Alchemy Manual    |    Alchemy Functions Index

Alchemy3LineCross (Function)

Alchemy3LineCross is a multiple-output function that returns different values based on the relation between a fast line and 2 slow lines.  The value of the specified 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 both slow lines by less than the distance as specified by the input Min Pen.  The function returns 2 when the fast line crosses over both slow lines by a minimum distance as specified by the input Min Pen.  The function returns 3 when the fast line has crossed over both slow lines by a minimum distance as specified by the input Min Pen and price retraced back down to the specified slow line.  The function returns -1 when the fast line crosses under both slow lines by less than the distance as specified by the input Min Pen.  The function returns -2 when the fast line crosses under both slow lines by a minimum distance as specified by the input Min Pen.  The function returns -3 when the fast line has crossed under both slow lines by a minimum distance as specified by the input Min Pen and price retraced back up to the specified slow line.

Alchemy2LineCross (FastAvg,SlowAvg,MinPen,oEntryLimit)

Parameters

 

FastAvg

Specifies the average for the fast line.

SlowAvg1

Specifies the average for the 1st slow line.

SlowAvg2

Specifies the average for the 2nd slow line.

MinPen

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

EntryAvg

Specifies which slow line to use for the variable oEntryLimit.  With a setting of "Closest" or "C", the uses the variable oEntryLimit returns the closest closest slow line, otherwise it returns the furthest slow line.  This input is a string input which requires the quotation marks and it is caps sensitive.

oEntryLimit Returns the value of the slow line as specified by the input EntryAvg when the function returns 2 or -2.

 

Returns

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

Home    |    Trading Alchemy Manual    |    Alchemy Functions Index