工作已完成
指定
To find entry points to open a trade, it should count the price in pips going both ways. When the count reaches 'pipMovement' amount, open a trade. If the price retraces 'pipRetrace' amount then the count starts over.
When the price moves up 'pipMovement' in pips without 'pipRetrace' occurring, open a buy, vice versa for a sell.
The trades should open in a martingale fashion. The buy count should pause as soon as the first buy order is triggered. The buy count should only start over once all the buy orders for that chart close. The sell count should keep going however through any buy orders. Vice versa for the other way....
Must have the following settings/features:
pipMovement - The total number of pips the price moves in one direction without pipRetrace occurring. This count should start over if pipRetrace is hit.
pipRetrace - The total number of pips the price needs to retrace in order to reset the count for that side.
Takeprofit
Stoploss
PipStep - Amount of pips the price moves before opening the next martingale trade
Multiplier - Used to multiply the lot size for the next martingale trade
MaxNumBuys - Max number of buy orders
MaxNumSells - Max number sell orders
Lot - Starting lot size if MM = false
MM - Turn MM on or off
Risk - Used to calculate starting lot size based on account size/leverage if MM is on.
Slippage
ECN - support for ecn brokers
DDStopLoss - Close all open orders if drawdown reaches this percentage
FloatingTP - Close all open orders if floating PL reaches this percentage
Magicnumber
ChartDisplay - Display chart info true or false
StartingTradeDay - Day to start trading
EndingTradeDay - Day to end trading for the week
Must work on both 4/5 digit brokers.