Extracted algorithm research record
NewsTrader Strategy
Placing buy and sell stop orders before news release with predefined TP and SL.
Source & extraction context
Evidence label: source_code (source claim, not independent verification). Recorded completeness: 50.0/100. Neither is a performance result.
Names identify source records. Inclusion is not an endorsement or a claim of authorship, ownership or reuse permission. Check the source license before reusing any implementation.
Extraction warnings
Build warnings
- MT4_ONLY: the captured source is MQL4 / written for MetaTrader 4. It needs porting (order functions, indicator handles) before it runs on MT5.
Recorded market & execution profile
- Recorded markets
- any
- Recorded timeframes
- M15
- Recorded sessions
- any
- Recorded regime
- any
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| No indicator stack was recorded. This does not establish a price-action-only strategy. | ||
Extracted strategy rules
Recorded long-entry rules
- orderAsk = Ask + bias * Point
- ticket2=OrderSend(Symbol(),OP_BUYSTOP,lot,orderAsk,1,orderBid-Point*sl,orderAsk+tp*Point,"NewsTrader",2,0,Green)
Recorded short-entry rules
- orderAsk = Ask - bias * Point
- ticket=OrderSend(Symbol(),OP_SELLSTOP,lot,orderAsk+Point,1,orderAsk+Point*sl,orderBid-tp*Point,"NewsTrader",2,0,Red)
Recorded exit rules
- not explicitly stated in the source
Recorded filters
- Not specified in the extracted record.
- Stop loss
- orderAsk+Point*sl, orderBid-Point*sl
- Take profit
- orderAsk+tp*Point, orderBid-tp*Point
- Position sizing
- lot
Questions about this record
What entry rules are recorded for NewsTrader Strategy?
Long: orderAsk = Ask + bias * Point ticket2=OrderSend(Symbol(),OP_BUYSTOP,lot,orderAsk,1,orderBid-Point*sl,orderAsk+tp*Point,"NewsTrader",2,0,Green) Short: orderAsk = Ask - bias * Point ticket=OrderSend(Symbol(),OP_SELLSTOP,lot,orderAsk+Point,1,orderAsk+Point*sl,orderBid-tp*Point,"NewsTrader",2,0,Red) These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: any. Timeframes: M15. These are source-recorded labels, not verified execution behavior.