Entry and exit program for NT 8 -- 2

Job ID: 37533944

Budget: ₹1,500 – ₹12,500 INR

Hi, I need a NT8 program for entry and exit. I set price on chart and select long or short, then the program follows the steps and opens a position. Then the program follows steps to close position. Here is the main logic:



Steps after P is set and LONG is selected:

If EEP has not yet opened a position, if price ever reaches X t (ticks) below P then cancel entry and reset EEP to wait until a new P is manually selected, along with SHORT or LONG (X is set in parameters).
Price reaches within 4 t above P.
Identify the open, close, high, and low of each bar.
When price closes>4t above P and closed as a green bar, that closed bar is “A”.
From now until a position is opened, if any closed bar is a doji or a red bar then go to step 3.
Then in the next bar after A, look for price to close above the close of A.
When the closing price of a bar is above the close of A, if the range of that entire bar is >=5t above P, then that next bar after A is “C”.
After C closes, look for price in the next 2 bars to reach 2 t above C.
If it does reach 2 t below C, send a market order to open a short position. If not go to step 3.


After EEP has opened a long position:



1) (Stop Loss): Anytime if price reaches X ticks below P then EEP will immediately close all positions with a market order. No pending or standing orders are used.



2) At the open of every new bar, identify the open/close/high/low of the previous 4 consecutive bars.

Look for 3 out of any 4 consecutive bars to close as red bars.
Then after the third red bar out of 4 bars, look for price in either of the next two bars to reach 2 ticks below the range of all 3 red bars (If this does not occur during these 2 bars then start again at step 1).
If this does occur then send a market order to immediately close the entire position.


Kindly let me know if you are available?
Related categories: C# Programming Metatrader Trading MetaTrader 4