Tradingview (Pinescript) code modules to integrate with existing code

Job ID: 33362377

Budget: $30 – $250 USD

I have existing Pinescript code in Tradingview that I use to place orders. The system utilizes Tradingview integrated with Chrome plugin Autoview that interfaces with Oanda as a broker. I need at least 3 new code modules that I will integrate with my code. The 3 modules I am currently looking at are:
1. A module that will pick up a change in a 4 hour Heikin Ashi candle (either high or low) or a change in a PSAR and then update an existing stop order with the new value.
2. A module that will test of the return on any currency pair equals or exceeds some variable percentage of current investment and then close the position
3. A module to automatically close all open positions at a chosen day and time (e.g. Friday at 1500 hours UTC)
Related categories: Pine Script