Hi,
Can anyone help me with a simple program in Java for my Windows 10 Pro PC that does :
- In ICE Brent Crude oil (COIL) Futures
- Every day for the time range from 06:00 to 20:00 London time
- For 5 min. Candlesticks
- Sells immediately after close of a candle (assume sell at Close price), if candle closes below Lower band & Closes the Sell position (assume buy at Close price), if candle closes above Lower band.
- Buys immediately after close of a candle (assume buy at Close price), if candle closes above Upper band & Closes the Buy position (assume sell at Close price), if candle closes below Upper band.
- If the 5 min. candle at 05:50 to 05:55 is already below Lower band & the 5 min.candle at 05:55 to 06:00 is even below Lower band, Sell position should not be initiated till the next signal of Sell. Similarly, for the Buy position.
- If the 5 min. candle at 05:50 to 05:55 is not below Lower band & the 5 min.candle at 05:55 to 06:00 is below Lower band, then Sell position should be initiated. Similarly, for the Buy position.
- Any position has to be closed at 20:00 (assume close at the Close price of 5 min. candle at 19:55 to 20:00).
- I want to display the resulting P/L of every day in given time range for last 1 month.
I'm new to Java Programming. So, plz let me also know :
- The downloads required
- How to run the program
- Where to display the result
If u have a similar program in other security, for another study, Even that's fine for me.
Plz help me.
Thanks in advance.