Refer to the attached
| Platforms Required | Pinescript, Tradingview, Pine Connector, MetaTrader | ||||
| Goal | Develop an auto trading robot using pinescript (version 5) and connect same to MetaTrader 4 & 5 using Pine Connector | ||||
| Duration | 15 Working days (approx 3 weeks) | ||||
| Budget | $100 fixed ($50 extra for meeting all KPIs) | ||||
| Input Functions | |||||
| 18 currency pairs / indices (by default) and can be changed - UK100,GER40,USA30,USA500,BTCUSD,FRA40,USDJPY,GBPUSD,USDCHF,USDCNH,AUDUSD,NZDUSD | |||||
18 inputs for each currency pairs / indices - Stop Loss, Take Profit, Lotsize, Automatic TrailingStop (Trailing stop = Trail_trigger, Trail_distance and Trail_step. Once the number of pips or price set as trigger is hit..Trail_trigger activates,, Every Trail_step moved, Stop Loss will be moved an equivalent of Trail_distance | |||||
Risk Management - 60% of Capital in the MT4 & MT5 trading account | |||||
18 inputs for each currency pair - First Order Cancellation (Due to memory lag on alerts received, false orders maybe placed. This cancels the first preset number of orders for each curency pair in a day before allowing subsequenet ordsers to be placed) | |||||
18 inputs for each currency pair - Maximum number of orders to be filled in a day (Maximum number of orders to be placed on each currency pair after first order cancellation. Both inputs are reset every new trading day). This command specifies the maximum number of filled orders per trading day. Once the strategy executes the maximum number of orders for the day, it cancels all pending orders, closes the open market position, and halts trading activity until the end of the current session. | |||||
Pine script Alerts - You will create input functions so that it will appear like I am setting up trading view alerts but this time on the script.. example Greater than 0, less than 0, moving up and moving down some points between 2 bars etc. Replicate trading view alert input settings for each of the indicators shared and for each of the timeframes... 1h, 2h, 3h, 4h, 1D.. | |||||
| Regarding the memory bank... From this strategy, all the alert condition cannot be met at same time because some involve crossing of a line.. so the robot should store in a memory that the line has crossed (bullish or bearish) and will use same for trade if other conditions on the three reset alert type are meet...the three reset alert type must be met simultaneously... In the memory bank, the alert condition is overridden if the condition changes from Bullish to Bearish... Maybe the lines have crossed in upward direction or moved 3 points upward as it was set... You will allow input functions so that it will appear like I am setting up trading view alerts but this time on the script.. example Greater than 0, less than 0, moving up and moving down some points between 2 bars etc.. | |||||
Deliverables | |||||
| i | All sourcecodes | ||||
| ii | Functional trading robots on MT4 & MT5 trading accounts as specified | ||||
| BUY CONDITION (alerts from tradingview accounts to be used) Once below alerts conditions are met in memory or instant, trade is placed in MT4 and MT5 accounts | |||||
stored in memory as 1 from tradingview until overriden by Bearish alert of same type | USDJPY 1Month RVGI_Bullish_Trend | ||||
stored in memory as 1 from tradingview until overriden by Bearish alert of same type | USDJPY 1Month WWV_Bullish_Trend | ||||
stored in memory as 1 from tradingview until overriden by Bearish alert of same type | USDJPY 1W RVGI_Bullish_Trend | ||||
stored in memory as 1 from tradingview until overriden by Bearish alert of same type | USDJPY 1W WWV_Bullish_Trend | ||||
Resets after placing each trade, picks another alert of same type and continue to place trade | USDJPY 4H RVGI_Bullish_Trend | ||||
Resets after placing each trade, picks another alert of same type and continue to place trade | USDJPY 4H RVGIX_Bullish_Trend | ||||
Resets after placing each trade, picks another alert of same type and continue to place trade | USDJPY 1H-4H WWV_Bullish_Trend | ||||
| SELL CONDITION (alerts from tradingview accounts to be used). Once below alerts conditions are met in memory or instant, trade is placed in MT4 and MT5 accounts | |||||
stored in memory as 0 from tradingview until overriden by Bullish alert of same type | USDJPY 1Month RVGI_Bearish_Trend | ||||
stored in memory as 0 from tradingview until overriden by Bullish alert of same type | USDJPY 1Month WWV_Bearish_Trend | ||||
stored in memory as 0 from tradingview until overriden by Bullish alert of same type | USDJPY 1W RVGI_Bearish_Trend | ||||
stored in memory as 0 from tradingview until overriden by Bullish alert of same type | USDJPY 1W WWV_Bearish_Trend | ||||
Resets after placing each trade, picks another alert of same type and continue to place trade | USDJPY 4H RVGI_Bearish_Trend | ||||
Resets after placing each trade, picks another alert of same type and continue to place trade | USDJPY 4H RVGIX_Bearish_Trend | ||||
Resets after placing each trade, picks another alert of same type and continue to place trade | USDJPY 1H-4H WWV_Bearish_Trend | ||||