I'm trying to code a a break out system. There is a piece of code that I would like to close if it doesn't meet the condition. For example, I want to open a sell if RSI<30 and current close is less then open.
However, I would like to close the trade if the next candle close is greater than the close of the candle that I open the trade on.
So essentially I simply want to close the trade immediately if the next candle close has changed direction.
If RSI<30 && CCI>177 then open
If the candle close after the candle that I opened the trade on is higher then I want to close the trade immediately.
Can anybody help?
Need help with candle close code
-
Chewbaca2020
- Posts: 4
- Joined: Sat Sep 06, 2014 8:26 am
Jump to
- Welcome
- Board admin messages
- Afterprime
- Funding our Forum. Tommaso needs our help.
- TDesk: A Thomas Special. The greatest trading tool ever.
- Automated trading systems
- ↳ Archived EA's
- ↳ EA's for Dummies.
- ↳ The demo/live money EA results forum
- ↳ Automated Loss Recovery
- ↳ Thingy Bob EA's
- ↳ Pipcruiser's Pipmasher forum
- ↳ Peaky forum
- ↳ Super Slope EA's
- ↳ Coordinated EA Testing Forum
- ↳ Moving Day
- ↳ Trendy Moving Day Adapted
- ↳ Trendy Monster Moving Day
- ↳ The Paycheck Project
- Manual trading systems
- ↳ Captain Jack's forum
- Utilities Indicators and Scripts
- ↳ Indicators
- ↳ Utilities
- ↳ Scripts
- Rene's stuff
- ↳ Auto-trading EA's and EA monitors
- ↳ Chart/template copying and history loading
- ↳ Clocks and calendars
- ↳ Data analysis tools
- ↳ Indicators and matrixes
- Nanningbob's Holy Grail Indicator forum
- ↳ Nanningbob 10.x
- ↳ Bob's individual forum
- ↳ Manual 10.x trading
- ↳ 10.x EA forum
- ↳ 10.x Indi forum
- ↳ 10.7 Auto Traders Forum
- BALUDA'S SUPER CSS-2.0. THE SIMPLEST TRADING SYSTEM EVER
- MQ5 Nuggets for the Dauntless
- Alternatives to Global Prime
- Coders Hangout
- ↳ Ideas for Possible Automation
- ↳ Coding Lessons - info for all
- Alternative platforms
- ↳ cTrader and cAlgo
- ↳ General discussion
- ↳ Indicators
- ↳ Robots
- ↳ JForex
- ↳ LMAX
- ↳ Tradable
- ↳ Protrader
- Know your MT4 platform
- General Forex Discussion
- ↳ Trading journals
- ↳ Finding a new platform
- ↳ Scam broker forum
- Trading Psychology & Money Management
- Macroeconomics and the Forex markets
- Newbie Discussion
- ↳ Automated trading (Rookies)
- ↳ General Discussion (Rookies)
- Lounge
- Commercial wares
- ↳ Beta testing groups
- ↳ Commercial stuff recommended by forum members
- ↳ Members' business to business
- ↳ Commercial EA's and Indi's etc
- ↳ VPS promotions
- ↳ INFINITE WEALTH