Code for pi retracment of price

after scanning of stock when 20 sma crossbove 50 sma but buying of stock when price retrace again on 50sma
smilar , after scanning of stock when 20 sma crossbelow 50 sma but selling of stock when price retrace again on 50sma
or creat signl sepreately price come to 50sma and retrce again for both buy and sell sondition

1 Like

experts Ive have the same question please help