Forum

Help Modifying pending orders

Hi there! I´m coding an EA which uses pending orders - i know that some people find that EAs shouldn´t use pending orders but it makes sense for my logic - and i want to modify its price depending on the last high/low. Im having trouble with the trade.orderModify parameters count. I´m using it the

BuyStop/SellStop not expiring in Strategy Tester

Hi there! I´m coding an EA that should place a BuyStop / SellStop order at a specific price and if it doesn't reach this price it should be cancelled after 2 bars (10 min since im using it on M5 timeframe). I tried to do that by setting an expiration time but when I test it on the strategy tester it

HELP! Custom Bullish/Bearish Pattern Indicator not working

Hi guys! I'm trying to code a simple indicator that identifies a pattern of 4 bullish/bearish candles in a particular order and whenever it finds one of the 3 patterns, it should set a buffer for buying/Selling at the Close price of the last candle, drawing arrows. But I can't make it work and I