stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Tipster Trendlines Lite
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2421
Page 1 of 1
Author:  AnotherBrian [ Mon Jun 03, 2013 9:04 pm ]
Post subject:  Tipster Trendlines Lite

This is an EA that I wrote in a few hours. I wrote it because I wanted to quickly place some orders on a chart, have a stop and target placed, and use the new drag line feature of build 500 to adjust the lines. This EA has less features than the TipsterTrendlines 2P TT2P.

This has the ability to place many orders, buy and sell, quickly and on the same chart.
My main use is in a trend, let's say a downtrend. I draw lines above price at supply levels, possible turning points, using small lot sizes with a stop above a daily level (manually adjusted after the order is filled). I build on the position, the more the pull back the more my position. I'm not going to discuss this technique, one the EA functionality. It's still rough as I want to fix the TrendDetect module. For now it's 3 stacked MA's on the daily. I am working on a better solution based on levels.

Summary of operation:
  • Put the EA 'TipsterLines' onto the chart. Select Lot and UseTrendDetect. Then, nothing happens.
  • Drag the script 'TL-NewLine' onto the chart, drop it where you want to enter. At first it is an orange dashed line. After a tick it will change colour and it's name changes. If above current price it will be red, below is green.
  • Stop is set the daily range(10) away as a starting point.
  • Target is set at the opposite bollinger band
  • Trailing stop, once filled, is the daily range(10), it moves one direction only, like a chandelier stop.
  • Once your lines are on teh chart, use the new feature in Empty4 to drag the lines where you want them.
  • You can draw lines above and below price.
  • If UseTrendDetect is ON, when price gets to your line it will check trend. If price is at a green line and the trend is down, the line is deleted and no order is placed. If price is at a red line and trend is down, order is placed at market and when it is filled, the original line is deleted from the chart.
    The Lot size can be changed at any time, any new filled orders will be at the new size. The lines are only an order location, size is not part of the line characteristic.
The EA file 'TipsterLines' goes in the experts directory, the script file 'TL_NewLine' goes in experts/scripts. The EA has all kinds of comments in it so for now I will just post the ex4 file.

The EA is called TipsterLines, perhaps it should be renamed to TipsterTrendlines Lite?

I built this code using more function blocks than I did when I built TT2P so it should be easier to modify.
Author:  ims [ Fri Sep 13, 2013 7:05 pm ]
Post subject:  Re: Tipster Trendlines Lite

This is great.
Any chance to modify the TP SL TSL as well as TF by modifying mq4 for now?
Many thanks for this useful tools.
Author:  AnotherBrian [ Fri Sep 13, 2013 11:31 pm ]
Post subject:  Re: Tipster Trendlines Lite

This is sort of out of date, it's grown since I posted it. Let me take a look and see what I can do.
Are you looking for "externs" or user inputs, is that what you mean about modified code?

If you need an EA like this with more power, look at my signature line - Tipster Trendlines.
It's not like this in that TT2P will place 2 orders. This EA is meant to place as many as you want.

I came up with this after Empty4 was modified to allow you to drag the TP and SL on the chart. So what I will do is make these all pending orders with ST and TP so after you drop it on the chart you can drag those lines around.

A tip - if you do this - check the "Use "Alt" key - look at options -> TAB CHARTS for this.
Author:  ims [ Tue Oct 01, 2013 3:29 am ]
Post subject:  Re: Tipster Trendlines Lite

Thanks Brian,
I have tried the TT2P for the whole week. That is brillian. And easy to use. That EA has cover almost my need to make orders especially based on breakout line or trendline orders.

Since I am using big timeframe so there will be hours and days to wait before the price break that pending order lines. I use VPS to do this. One thing would be my concern is my internet speed to edit / drag / drop the lines at the terminal which is running at VPS location. That will be very slowly and very frustrated.

I am thinking whether it would be possible to analyze the charts at home and then make an output of coordinate the lines to text file. Using that text file maybe we can have a chance to reconstruct that lines at terminal on VPS.

What is your suggestion about this thing?

(luktom changes some parameters of the EA at http://en.luktom.biz/Page/522/remotely-controlled-ea).
Author:  AnotherBrian [ Tue Oct 01, 2013 3:35 am ]
Post subject:  Re: Tipster Trendlines Lite

ims wrote:Thanks Brian,
I have tried the TT2P for the whole week. That is brillian. And easy to use. That EA has cover almost my need to make orders especially based on breakout line or trendline orders.

Since I am using big timeframe so there will be hours and days to wait before the price break that pending order lines. I use VPS to do this. One thing would be my concern is my internet speed to edit / drag / drop the lines at the terminal which is running at VPS location. That will be very slowly and very frustrated.

I am thinking whether it would be possible to analyze the charts at home and then make an output of coordinate the lines to text file. Using that text file maybe we can have a chance to reconstruct that lines at terminal on VPS.

What is your suggestion about this thing?

(luktom changes some parameters of the EA at http://en.luktom.biz/Page/522/remotely-controlled-ea).
Glad you find it useful.

I think there is an easier way. Draw your lines at home, then save the template and upload to the VPS. You can google Empty4 templates and read all about them. I think dusktrader does this. If you run into problems, give him a call on the PM.

Edit - I have this on my to-do list to re-visit this code and fix it up a bit.
Author:  ims [ Tue Oct 01, 2013 3:46 am ]
Post subject:  Re: Tipster Trendlines Lite

Oh dear, yes the templates !
Using the templates would be the quick and simple solution. I will use that way for now.

I also want to try to make Amibroker give that coordinates of the lines because I prefered to the AB to give analysis with the bigger timeframe.

First I will use templates solution to reconstruct that lines using coordinates from AB.
If this way fail then I will try to ask the source code of the EA from you if you don't mind.
All times are UTC Page 1 of 1