continous trading

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

continous trading

Postby chai88888 » Wed Apr 22, 2020 12:35 am

hi there can you make a strategy based on this : if price is trending up, place a buy order for .1 lots (also place a Stop Loss at 29
pips and a Take Profit at 30 pips). At the same time place a Sell Stop order for .2 lots 30 pips below
with a 29 pip SL and 30 pip TP. If the first position hits SL and second order is triggered, place a Buy
Stop order 30 pips above your new order for .4 lots. Etc... Your order sizes will be .1/.2/.4/.8/1.6/etc...
If ever your stop loss is hit and the new order has not been triggered because price has reversed, place
this new order on the opposite side, where price is now headed towards (in this situation you will have
both a buy stop and sell stop order set up for the same lot size).

if the price hits the tp it will remove the order and make a new trade on the direction of the hit tp.

thanks
chai88888
FXCodeBase: Graduate
 
Posts: 228
Joined: Tue Jun 07, 2016 7:18 am

Re: continous trading

Postby Apprentice » Wed Apr 22, 2020 10:45 am

Your request is added to the development list.
Development reference 1109.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36474
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: continous trading

Postby shaloiulabcde » Mon Mar 29, 2021 12:33 pm

Hi,

can you please update this to stop multiple orders from being created at the same time. I've attached an example. It should not be creating 6 x Buy entry orders at the same price and order size.

Also can you include a setting to cap the order size at 8, so order size should be 1, 2, 4, 8 and back to 1. The lot size has gone as high as 256 before which is very bad for risk management.

Thanks
Attachments
Order size.PNG
order size
Order size.PNG (9.27 KiB) Viewed 2996 times
shaloiulabcde
 
Posts: 18
Joined: Wed Mar 17, 2021 9:00 am

Re: continous trading

Postby Apprentice » Tue Mar 30, 2021 6:07 am

Your request is added to the development list.
Development reference 322.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36474
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: continous trading

Postby shaloiulabcde » Fri Jul 23, 2021 9:54 am

Hi

Can you please add a Trading Time settings to this?

Thanks

Apprentice wrote:
The attachment continous_trading.lua is no longer available

Try this version.
Attachments
Capture.PNG
Capture.PNG (9.17 KiB) Viewed 2620 times
shaloiulabcde
 
Posts: 18
Joined: Wed Mar 17, 2021 9:00 am

Re: continous trading

Postby Apprentice » Tue Jul 27, 2021 3:10 am

Your request is added to the development list.
Development reference 691.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36474
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: continous trading

Postby shaloiulabcde » Sat Jul 31, 2021 3:27 am

Apprentice wrote:
continous_trading.lua

Try this version.


Thanks for the prompt response.

The default 'Allow Trading' setting is set to 'No', can you change this to 'Yes' please so backtesting can work?

One more thing, I found it doesn't trade when the start and end time is changed from the default. It should be customisable and if possible have the option for a hard exit at the stop trade time.
Last edited by shaloiulabcde on Mon Aug 02, 2021 5:06 am, edited 1 time in total.
shaloiulabcde
 
Posts: 18
Joined: Wed Mar 17, 2021 9:00 am

Next

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 20 guests