Trde script reuired

Hi,

I want following trade script for Pi screener, A . 1. price< bolinger median 2.bolingr median < psar

​B. 1. Price >bolingr Median 2.Bolingr median is > psar screening for all TFs from 5mtf to daily

For the above conditions

A.

LAST<BBM(CLOSE, 20, 2, EXPONENTIAL) AND BBM(CLOSE, 20, 2, EXPONENTIAL)<PSAR(0.02, 0.2)

B.

LAST>BBM(CLOSE, 20, 2, EXPONENTIAL) AND BBM(CLOSE, 20, 2, EXPONENTIAL)>PSAR(0.02, 0.2)

Thanx Mr.Algo,
Pl add in above script , For sell Price > Super trend Buy price < super trend

Hi Mr .Algo,
I put both the script in scanner it is telling to put in proper fomat then I put it in “alert” there it says "undefined variable “)” for buy and sell script pl help

check the above corrected code

Hi Mr.Algo,
Where is the corrected code,I dont find any !! Also Pl tell what correction s made(for my Learning purpose )