Continuing previous article...

Note: On previous article i forget to make the link to the forum thread where you can download this strategy. You can download it here.

Image 1: On this image i explain bellow all the strategy window items (on the left) and the option windows for changing Stop Loss and Take Profit respectively after order submition (at center). At the left of the image we have one example of the strategy running where we have two orders closed, three orders submited where two of them are filled (one with profit and one with loss) and one pending order waiting to trigger if the conditions are meet. Also we can see the Stop Loss and Take Profit prices on the red circles if the orders have them. On the green circle we have the price of the pending order and it will be filled when price reach the specified price.

Legend of the image (missing items are described on my last article that you can read here).
  • 8 - "Pips" or "Value" (default "Pips"): Here you define the way you use to fill the Stop Loss and Take Profit boxes. With the default selected you must fill with the pips amount you want for Stop Loss and Take Profit on each of the corresponding boxes. If you select "Value" you need to fill with the price value you want for Stop Loss and Take Profit on each of the corresponding boxes;
  • 9 - Stop Loss box : You fill here the Stop Loss value in pips or price value depending on the selection made at the left option. You you leave the default value of "0.0" or use "0" the order is submited without Stop Loss;
  • 10 - Take Profit box : You fill here the Take Profit value in pips or price value depending on the selection made at the left option. You leave the default value of "0.0" or use "0" the order is submited without Take Profit;
  • 11 - Slippage box: In the context of "Historical Tester" this box don't make any sense but we get used to it and because of that it exists here and is working as expected. Fill with the value you want or use the default one;
  • 12 - Synchronize Button: If you click this button all orders on the orders table are removed and filled again with all active orders;
Note on Synchronize button: This button exist because i faced a "bug" that i could not resolve and find a explanation for it as everything seems correct to me on the code. Sometimes happens that the closed orders are not removed from the orders table. With this button we can resolve this "bug".

Note on "Orders" table: With the default height of the window we have space for three orders visible as in the example on the image above. But it's not limited to this number of orders! You can have any number of orders and if that occurs a scrollbar at the left allow us to navigate between the orders. Also you can increase the height of the strategy window and this space if filled by the table showing us more orders at same time on the available space. Each order uses three rows and respect the sequence on the title columns.
  • 13 - Table cell "Order label": This cell contains the order label. The background of the cell can be "Green" or "Yellow". If green, the order is filled, if yellow the order is pending waiting for fill conditions;
  • 14 - Table cell "Order Amount": this cell contains the amount value used by the order;
  • 15 - Table cell "Price": Price of the filled order or the price we want for the pending order;
  • 16 - Table cell "Stop Loss": This cell contains the value of the Stop Loss in use or pretended by the order. If it's value is "0.0" or "0" the order don't have Stop Loss. We can change the value of the Stop Loss clicking on the corresponding cell of the order and we get a window like the one identified by green "A" on the image above;
  • 17 - Table cell "Take Profit": This cell contains the value of the Take Profit in use or pretended by the order. If it's value is "0.0" or "0" the order don't have Take Profit. We can change the value of the Take Profit clicking on the corresponding cell of the order and we get a window like the one identified by green "B" on the image above;
  • 18 - Table Cell "Profit/Loss in Pips": This cell show us the profit or loss of the order along the order flow. If the background is green, we have the order at that moment in profit the number of pips on the cell. If the background is yellow the order is without profit or loss at zeros. If the backgroung is red we have the order at that moment in loss the number of pips on the cell.
  • 19 - Table cells "CLOSE": This cells are used to close the corresponding order at the left. Just click any of the three "CLOSE" of the order and the order is closed;
  • A - Stop Loss change Window: When we click at Stop Loss value of any order we get this window that allow us to change the Stop Loss value of the corresponding order. If we fill with the value of "0" the Stop Loss is removed;
  • B - Take Profit change Window: When we click at Take Profit value of any order we get this window that allow us to change the Take Profit value of the corresponding order. If we fill with the value of "0" the Take Profit is removed.
Using the strategy

Bellow i present you with some image sequences of the steps needed to make some actions with this strategy.

Image 2: At the left a example of the strategy window at strategy start in "Historical Tester". At center a example of the strategy with more than the three visible orders and the left scrollbar that allows to see orders not visible. At the right we can see we have the possibility to increase the height to see more orders on the orders table.

Image 3: Simple order @market price without Stop Loss and Take Profit at left. Just fill the amount and click "Sell" or "Buy". At center a example order with Stop Loss value in pips and at right with Take Profit value in pips only. If you want both values (i advise to use them) just fill the corresponding values. To close the orders just click on "CLOSE" of the corresponding order.

Image 4: Same example as on image above but this time with Stop Loss and Take Profit with price value.

Image 5: At left one filled trade running and try to submit a Buy pending order at bid price. At center the pending order is submited at bid price. At left other Sell pending order at ask price. The orders are filled when de bid price or ask price reachs each value respectively.

Image 6: Order close examples. At right we have some orders placed and we try to close pending order "BUY2" that is open at the top clicking on any of the "CLOSE" of the order. On center we can see that the order "BUY2" is canceled and we try to close filled order "BUY5" clicking on any of the "CLOSE" of the order. At the left we can see the final result.

Image 7: Stop Loss and Take Profit change. To change each one of this values you just need to click on the respective cell (Stop Loss or Take Profit) on the order to get the change window.

Image 8: If you need to do your manual trades with indicators, draw objects or use functions you can do it on the "Historical Tester" chart the same way you do on real time charts. I never have refered before, but you can follow your equitity/balance and date/time where the "Historical Tester" goes in the progress bar on "Historical Tester" tab.

Image 9: At strategy stop, if you have selected the "Show Reports" on the options at initial steps, you get on your browser the final report. On this report can appear some "Null Pointer" exceptions, but don't worry, the strategy works fine. I spend some time to figure out this problem, but without success. I will try to solve this issue when possible.

Final words

Note: Don't foolish yourself trying to test your skills on manual trading on "know" charts! Psychology it's a weird thing...

Again, i'm running out of space to elaborate more considerations about this strategy and other plans for this one and other strategies. I hope you like and find useful this strategy. On next article i will explain how i made this strategy and the key aspects present on it.

Until next article, trade well and prospers in your way !

JL

Translate to English Show original