Questions tagged [crossover]

In genetic algorithms, crossover is a genetic operator used to vary the programming of a chromosome or chromosomes from one generation to the next.

Crossover is analogous to reproduction and biological crossover, upon which genetic algorithms are based.

Crossover is a process of taking more than one parent solutions and producing a child solution from them.

Many crossover techniques exist for organisms which use different data structures to store themselves: one-point crossover, two-point crossover, uniform crossover...

See Crossover (genetic algorithm) on Wikipedia.

113 questions
0
votes
0 answers

Mutation Error and Crossover Error not working properly

library(GA) # Define the problem set.seed(123) assets <- c("Asset 1", "Asset 2", "Asset 3", "Asset 4", "Asset 5", "Asset 6", "Asset 7", "Asset 8", "Asset 9", "Asset 10") criteria <- c(0.5, 0.3, 0.2) # We want to select assets that meet this…
0
votes
0 answers

Randomisation - Partial Incomplete Block Design

I'm looking to replicate this randomisation in R studio. Key features: A and B are the primary comparison and must have 2 by 2 cross over design (i.e., occur togeather in each sequence) The incomplete block design should include C D E and F -…
Claire
  • 13
  • 4
0
votes
0 answers

How to define a section between ta.crossunder and ta.crossover to get max / min prices

My goal is to get the maximum value of the section between the ta.crossover and ta.crossunder. Could you please help which function should I use for that? Thanks a ton in advance! Kinda lost during the progress. Have the high and low value for the…
Robert
  • 1
0
votes
1 answer

PineScript Simple EMA crossover script, long condition met but not initiating long positions

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © AtlasTrading712 //@version=5 strategy("Trendfollowing EMA", overlay=true, margin_long=100, margin_short=100) symbol_price =…
0
votes
1 answer

How to plot line only on first value of crossover condition met in Pine Script

I need help in Pine script coding, i want to plot the first crossover value alone not entire series of values for whole day. so if crossover condition is true for 1st or 2nd or 3rd or n times, i need to plot the line from the first condition met to…
0
votes
0 answers

While Converting V2 pine script to V5 Facing error

//@version=2 study(title="EMA & MA Crossover", shorttitle="EMA & MA Crossover", overlay = true) LengthMA = input(50, minval=1) LengthEMA = input(200,minval=1) xMA = ema(close, LengthMA) xEMA = ema(close, LengthEMA) pos = iff(xEMA < xMA , 1,…
0
votes
0 answers

how to create buy/sell Alert Conditions for specific Hex color codes when is displayed on screen?

I'm using Ema crossover fill area generating new hex color. I just want a buy alert signal when specific (hex color) is displayed on screen. Sell alert signal when specific (hex color) is displayed on screen.
0
votes
0 answers

How do I start my strategy after a corssover/under?

I am trying to code the following strategy: Buy: (1) signal one being the 50 ema crossing over the 200 ema. (2) signal two, wait for three red candles, with the final candle closing under the 50 ema. (3) signal three, next candle is immediately…
0
votes
1 answer

Crossover function in genetic algorithm to provide full set of tests and unique values in Java

I am trying to implement genetic algorithm for permutation problem. I have a file with results of tests and faults which were found during the tests, I need to find the optimal way to permutate the tests. I need some crossover function to mate genes…
andsemenov
  • 51
  • 8
0
votes
0 answers

Crossover 2x2 Design w/ Baseline Measrument

I hope I get help here. I am still in the early stages of statistical analysis with R. Anyway, here is the problem: Study design: 20 patients assessed at 3 different time points: Timepoint 0 = Baseline ; Timepoint 20 (20 days with Treatment…
0
votes
1 answer

Mutation with String Encoded Chromosomes - Genetic Algorithm

I am implementing Genetic Algorithm (GA). There are 43 numbers [Ambulance Locations] to choose from (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39) ,…
user13373167
0
votes
1 answer

Cross-Over with string Encoded Chromosomes

I am implementing Genetic Algorithm (GA). There are 43 numbers [Ambulance Locations] to choose from (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39) ,…
user13373167
0
votes
0 answers

Pine script request.security issue

Been learning a lot from here and finally putting in my first post. I am building a custom TradingView plotshape for a 1 hour crossover on a 15 min chart and getting an error. I'm hoping someone can help me address this. src1 =…
0
votes
1 answer

How to perform crossover of two nested lists without changing the contents inside their sub lists in Python?

I have two nested lists parent_M: [[[5222, 'BSC2', 'ST6'], ['LR1'], ['FTM3']], [[4222, 'BSC1', 'ST6'], ['LH2'], ['TTM3']], [[4222, 'BSC1', 'ST6'], ['CR1'], ['MTM3']], [[4202, 'BSC1', 'ST3'], ['LH2'], ['TTM2']], [[6008, 'BSC3', 'ST1'], ['LH2'],…
azmilhanif
  • 29
  • 5