Forum

Need Help Adding Text to my Indicator

I wrote a custom indicator that finds the swing highs and lows. Currently it puts an arrow object point to the price level and the time bar. Green for High and Red for Low. I would like to change it to text that shows a count variable. Here is a portion of the code I created but it isnt showing the

PREVIOUS Month/Week High Low

Hello, I am looking for some code or indicator that determines the High and Low of the Previous Month and Week. I have found lots of indicators online that determines the High and Low of the Previous Month as of the current date, but I would like to determine it for the Last Month....meaning if its

Why is my indicator not drawing

Hi, I created this custom indicator to draw an arrow at Swing Hi's and Lo's. Can't figure out why it is not drawing the arrows when I apply it to a chart. Any ideas? ThemBonez //+------------------------------------------------------------------+ //|

Need Help with Function

Hi, I wrote this simple function to move two open orders to breakeven when certain criteria are met. The problem I'm having is that it moves one trade to breakeven but gives me a modify error 1 for the second. Any ideas? Thank You void MoveToBreakEven() { for ( int i= OrdersTotal ()- 1 ; i >=

Need Help with OrderModify Coding

In my EA, I am placing a pending stop order to enter based on indicator criteria. If after placing the pending order, price moves against me, I want to modify my pending entry price to the high/low (depending on Long/Short) of the last bar. I am getting errors 4108 and 4501 and can't figure out why