Barry Weinberg / Publications
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
Need Help with Move to Breakeven 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 >= 0; i--) {
How to reinitialize Custom Indicator variables?
Hi, I've created an adaptive custom indicator based on RSI and Stochastic that analyzes the immediate previous history and then chooses parameter settings based on that analysis. I then created an EA that uses that custom indicator to make trades. Its working great except for one thing: Once the
Trouble with Trade Functions
Hi, Im new to MQL4 Programming and am working on my first EA. Overall my EA is working, however once my order is placed I am having trouble with OrderDelete() and OrderModify(). Below is a section of my code that includes my OrderSend, OrderDelete and OrderModify sections. Can someone please check
Swing Highs and Swing Lows
Hello, If I wanted to use swing highs and lows to determine fibonacci ratios and to set trailing stop losses from in an expert advisor, what algorithm would I use to determine these swing highs and lows? I put a chart below indicating what I mean: Thank You ThemBonez
Swing Highs and Swing Lows
Hello, If I wanted to use swing highs and lows to determine fibonacci ratios and to set trailing stop losses from in an expert advisor, what algorithm would I use to determine these swing highs and lows? I put a chart below indicating what I mean: Thank You ThemBonez
Creating an indicator grid
Hello, I would like to create an excel-like grid in a separate window based on a 2 dimensional array consisting of pair symbols on the vertical and time frames on the horizontal, in which I would display indicator analysis information in the boxes where the symbols and time frames meet. How would i
How to Reset Buffers
In a custom indicator , I am creating I am analyzing an indicator array multiple times for certain criteria using different settings. For each test of the different settings, I need to reset the buffers and the indicatorcounted() function back to zero. How do I reset the buffers and the
Need Help with Code
Hello, I am currently reading Codersguru's MQL4 primer. I am writing my first code. My first project is an algorithm that analyzes a custom indicator I created with the help of another programmer called Stochastic RSI. It basically does a stochastic of the RSI Indicator. The code I have written is a